modules: system: packages: configure aliases
Disallow them by default, but make it configurable.
This commit is contained in:
parent
5e021e6436
commit
4c0c6a75b2
|
@ -7,6 +7,8 @@ in
|
|||
options.my.system.packages = with lib; {
|
||||
enable = my.mkDisableOption "packages configuration";
|
||||
|
||||
allowAliases = mkEnableOption "allow package aliases";
|
||||
|
||||
allowUnfree = my.mkDisableOption "allow unfree packages";
|
||||
};
|
||||
|
||||
|
@ -27,7 +29,7 @@ in
|
|||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = cfg.allowUnfree; # Because I don't care *that* much.
|
||||
inherit (cfg) allowAliases allowUnfree;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue