refactor: centralize unfree package allowlists
Move all allowUnfreePredicate declarations to global configs to prevent the "last definition wins" merging issue. Unfree packages are now managed in two central locations: - NixOS system packages: nixos/common/global/default.nix - Home Manager packages: home-manager/sajenim/global/default.nix
This commit is contained in:
parent
34b4705d46
commit
591346600f
5 changed files with 27 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{outputs, ...}: {
|
||||
{outputs, lib, ...}: {
|
||||
imports = [
|
||||
./age.nix
|
||||
./env.nix
|
||||
|
|
@ -15,6 +15,18 @@
|
|||
];
|
||||
config = {
|
||||
allowUnfree = false;
|
||||
# Centralized unfree package allowlist for NixOS system configuration.
|
||||
# Note: nixpkgs.config.allowUnfreePredicate doesn't merge across modules - only the
|
||||
# last definition wins. To maintain explicit control over unfree packages, we list
|
||||
# all allowed packages here rather than scattering predicates across system modules.
|
||||
allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
# Gaming
|
||||
"steam"
|
||||
"steam-unwrapped"
|
||||
# Services
|
||||
"minecraft-server"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue