home: packages: add 'allowAliases', 'allowUnfree'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
With [1], this should now be taken into account properly. [1]: https://github.com/nix-community/home-manager/pull/4304
This commit is contained in:
parent
22fa05ca0c
commit
16fade92b4
|
@ -6,6 +6,10 @@ in
|
||||||
options.my.home.packages = with lib; {
|
options.my.home.packages = with lib; {
|
||||||
enable = my.mkDisableOption "user packages";
|
enable = my.mkDisableOption "user packages";
|
||||||
|
|
||||||
|
allowAliases = mkEnableOption "allow package aliases";
|
||||||
|
|
||||||
|
allowUnfree = my.mkDisableOption "allow unfree packages";
|
||||||
|
|
||||||
additionalPackages = mkOption {
|
additionalPackages = mkOption {
|
||||||
type = with types; listOf package;
|
type = with types; listOf package;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
@ -23,5 +27,9 @@ in
|
||||||
file
|
file
|
||||||
ripgrep
|
ripgrep
|
||||||
] ++ cfg.additionalPackages);
|
] ++ cfg.additionalPackages);
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
|
inherit (cfg) allowAliases allowUnfree;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue