mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 07:23:29 +01:00
rockchip/rk3399: init
This commit is contained in:
1 parent
c5666d9cd6
commit
52047449bf
4 files changed
+129
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user