From 859fe88aa7165c2b2740980ef861b4534eb57b82 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 3 Mar 2023 14:32:15 +0100 Subject: [PATCH] packages: implement allowUnfreePredicate --- flake.nix | 1 + packages/unfree.nix | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 packages/unfree.nix diff --git a/flake.nix b/flake.nix index 55213e8..dff5f17 100644 --- a/flake.nix +++ b/flake.nix @@ -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}; diff --git a/packages/unfree.nix b/packages/unfree.nix new file mode 100644 index 0000000..beea355 --- /dev/null +++ b/packages/unfree.nix @@ -0,0 +1,6 @@ +[ + # For NVIDIA ML + "nvidia-persistenced" + "nvidia-settings" + "nvidia-x11" +]