radxa/rock-4c-plus: init

This commit is contained in:
ZHANG Yuntian authored and mergify[bot] committed 2025-02-06 04:19:59 +00:00
1 parent 52047449bf
commit 68cc7a876b
6 files changed
+161

No files matched your search

+22
View File
@@ -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;
};
};
}