packages: implement allowUnfreePredicate
This commit is contained in:
parent
325f7d6131
commit
859fe88aa7
2 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
config.allowUnfreePredicate = pkg: lib.elem (lib.getName pkg) (import ./packages/unfree.nix);
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy-rs-lib = inputs.deploy-rs.lib.${system};
|
deploy-rs-lib = inputs.deploy-rs.lib.${system};
|
||||||
|
|
6
packages/unfree.nix
Normal file
6
packages/unfree.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[
|
||||||
|
# For NVIDIA ML
|
||||||
|
"nvidia-persistenced"
|
||||||
|
"nvidia-settings"
|
||||||
|
"nvidia-x11"
|
||||||
|
]
|
Loading…
Reference in a new issue