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 +++++- hosts/optiplex/home.nix | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 hosts/optiplex/home.nix (limited to 'hosts/optiplex') 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; [ diff --git a/hosts/optiplex/home.nix b/hosts/optiplex/home.nix deleted file mode 100644 index 38646b1..0000000 --- a/hosts/optiplex/home.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - theme.mint.theme.color = "Dark-Green"; - theme.mint.icons.color = "Green"; - wallpapers.enable = true; -} -- cgit v1.2.3