mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 07:23:29 +01:00
radxa/rock-4c-plus: init
This commit is contained in:
1 parent
52047449bf
commit
68cc7a876b
6 files changed
+161
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.hardware.radxa;
|
||||
in {
|
||||
options.hardware.radxa = {
|
||||
enable = lib.mkEnableOption "Radxa system support";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot = {
|
||||
# Currently enable bcachefs automatically set
|
||||
# kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
||||
kernelPackages = lib.mkOverride 990 pkgs.linuxPackages_latest;
|
||||
supportedFilesystems = [ "bcachefs" ];
|
||||
loader.systemd-boot.enable = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user