Switch to allowUnfree -> allowUnfreePredicate

This commit is contained in:
monologiq 2025-12-24 12:06:41 +01:00
parent eec73fe62b
commit 6ec28c4ddc

View file

@ -19,6 +19,15 @@ in
../profiles/minimal.nix ../profiles/minimal.nix
]; ];
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"1password"
"1password-cli"
"nvidia-x11"
"nvidia-settings"
];
# FILE SYSTEM # FILE SYSTEM
fileSystems."/boot" = { fileSystems."/boot" = {
@ -209,8 +218,6 @@ in
}; };
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
nixpkgs.config.allowUnfree = true;
nix.settings = { nix.settings = {
substituters = [ "https://cache.nixos-cuda.org" ]; substituters = [ "https://cache.nixos-cuda.org" ];
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ]; trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];