packages: implement allowUnfreePredicate

This commit is contained in:
Max Headroom 2023-03-03 14:32:15 +01:00
parent 325f7d6131
commit 859fe88aa7
2 changed files with 7 additions and 0 deletions

View file

@ -48,6 +48,7 @@
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfreePredicate = pkg: lib.elem (lib.getName pkg) (import ./packages/unfree.nix);
};
deploy-rs-lib = inputs.deploy-rs.lib.${system};

6
packages/unfree.nix Normal file
View file

@ -0,0 +1,6 @@
[
# For NVIDIA ML
"nvidia-persistenced"
"nvidia-settings"
"nvidia-x11"
]