modules: system: packages: configure aliases

Disallow them by default, but make it configurable.
This commit is contained in:
Bruno BELANYI 2022-09-29 21:58:48 +02:00
parent 5e021e6436
commit 4c0c6a75b2

View file

@ -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;
};
};
}