diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-08-30 12:55:23 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-08-30 12:55:23 -0500 |
commit | d3643a962b42440f706c9171a2644c41fcd2be8e (patch) | |
tree | 7dc276763b5cfcd9510b26dfa63f242110305887 /hosts/optiplex/configuration.nix | |
parent | 9da942ba47d34210e86a1a709e802eda5c3b95db (diff) | |
download | nixos-d3643a962b42440f706c9171a2644c41fcd2be8e.tar.xz nixos-d3643a962b42440f706c9171a2644c41fcd2be8e.zip |
only allow specified unfree software on hosts that use unfree and update all active hosts to work with new config
Diffstat (limited to 'hosts/optiplex/configuration.nix')
-rw-r--r-- | hosts/optiplex/configuration.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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; [ |