aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ni
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-21 21:39:14 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-21 21:39:14 +0200
commitf1695bd4c40b924f8fb220cfd8bb68b20805bfda (patch)
tree6c1ceffc82e868eeca9d259b2b7e56c798f54d2a /modules/by-name/ni
parentmodules/lf: Use nix attrs to avoid overlapping mappings (diff)
downloadnixos-config-f1695bd4c40b924f8fb220cfd8bb68b20805bfda.zip
modules/{steam,nvim/plgs/cmp}: Make allowing unfree packages module-local
Diffstat (limited to '')
-rw-r--r--modules/by-name/ni/nixpkgs/module.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/by-name/ni/nixpkgs/module.nix b/modules/by-name/ni/nixpkgs/module.nix
index 84d8e074..1ded8444 100644
--- a/modules/by-name/ni/nixpkgs/module.nix
+++ b/modules/by-name/ni/nixpkgs/module.nix
@@ -22,7 +22,13 @@ in {
example = "x86_64-linux";
type = lib.types.str;
};
+ unfreePackageNames = lib.mkOption {
+ description = "Names of unfree packages to allow";
+ example = "[ steam steam-unwrapped ]";
+ type = lib.types.listOf lib.types.str;
+ };
};
+
config = let
myPkgsOverlay = self: super: packageSets.soispha;
in
@@ -39,11 +45,7 @@ in {
hostSystem = cfg.systemName;
allowUnfreePredicate = pkg:
- builtins.elem (lib.getName pkg) [
- # the plugin is lacking an license and is thus unfree, effectively
- # its okay though (TODO: investigate <2026-05-11>)?
- "cmp-calc"
- ];
+ builtins.elem (lib.getName pkg) cfg.unfreePackageNames;
};
};
};