From d3643a962b42440f706c9171a2644c41fcd2be8e Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 30 Aug 2025 12:55:23 -0500 Subject: only allow specified unfree software on hosts that use unfree and update all active hosts to work with new config --- hosts/optiplex/configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hosts/optiplex/configuration.nix') diff --git a/hosts/optiplex/configuration.nix b/hosts/optiplex/configuration.nix index b92b580..6f7d4d4 100644 --- a/hosts/optiplex/configuration.nix +++ b/hosts/optiplex/configuration.nix @@ -46,7 +46,11 @@ systemd._suspend.disable = true; # Allow unfree for nvidia + others - nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "nvidia-x11" + "nvidia-settings" + "spotify" + ]; # Install more software environment.systemPackages = with pkgs; [ -- cgit v1.2.3