From 6ec28c4ddc253b7c34206139d74e6ae03cc0ccfe Mon Sep 17 00:00:00 2001 From: monologiq Date: Wed, 24 Dec 2025 12:06:41 +0100 Subject: [PATCH] Switch to allowUnfree -> allowUnfreePredicate --- machines/persephone.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/machines/persephone.nix b/machines/persephone.nix index cbe4049..0c06dc2 100644 --- a/machines/persephone.nix +++ b/machines/persephone.nix @@ -19,6 +19,15 @@ in ../profiles/minimal.nix ]; + nixpkgs.config.allowUnfreePredicate = + pkg: + builtins.elem (lib.getName pkg) [ + "1password" + "1password-cli" + "nvidia-x11" + "nvidia-settings" + ]; + # FILE SYSTEM fileSystems."/boot" = { @@ -209,8 +218,6 @@ in }; i18n.defaultLocale = "en_US.UTF-8"; - nixpkgs.config.allowUnfree = true; - nix.settings = { substituters = [ "https://cache.nixos-cuda.org" ]; trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];