From 70335149b62d7ab2b10390eab17426a6139cf605 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 6 Dec 2024 12:57:59 -0500 Subject: [PATCH] enumerate unfree packages --- modules/baseline.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/modules/baseline.nix b/modules/baseline.nix index 23cfb25..54eef54 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -19,7 +19,24 @@ ]; }; - nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfreePredicate = + pkg: + # builtins.trace "unfree: ${lib.getName pkg}" ( + builtins.elem (lib.getName pkg) [ + "cuda_cudart" + "libcublas" + "cuda_cccl" + "cuda_nvcc" + "nvidia-x11" + "vscode-with-extensions" + "vscode" + "burpsuite" + "terraform" + "discord" + "steam" + "steam-unwrapped" + "nvidia-settings" + ]; security.sudo.extraConfig = "Defaults lecture=never";