rockchip/rk3399: init

This commit is contained in:
ZHANG Yuntian
2025-01-20 20:59:44 +08:00
committed by mergify[bot]
parent c5666d9cd6
commit 52047449bf
4 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{ lib
, pkgs
, config
, ...
}:
let
cfg = config.hardware.rockchip.rk3399;
in {
imports = [
../.
];
options.hardware.rockchip.rk3399 = {
enable = lib.mkEnableOption "Rockchip RK3399 support";
};
config = lib.mkIf cfg.enable {
hardware.rockchip.enable = true;
};
}

14
rockchip/rk3399/disko.nix Normal file
View File

@@ -0,0 +1,14 @@
{ lib
, pkgs
, config
, ...
}:
let
cfg = config.hardware.rockchip.rk3399;
in {
config = lib.mkIf cfg.enable {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"arm-trusted-firmware-rk3399"
];
};
}