mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
rockchip/rk3399: init
This commit is contained in:
committed by
mergify[bot]
parent
c5666d9cd6
commit
52047449bf
20
rockchip/rk3399/default.nix
Normal file
20
rockchip/rk3399/default.nix
Normal 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
14
rockchip/rk3399/disko.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user