treewide: use lib.mkDefault for "collateral" config
this allows the user to override settings without lib.mkForce, since that should only be needed for potentially unadvisable changes
This commit is contained in:
parent
a210bf53ec
commit
4c4e2ee737
5 changed files with 10 additions and 8 deletions
10
default.nix
10
default.nix
|
|
@ -22,9 +22,11 @@ in
|
|||
config = {
|
||||
_module.args.owoLib = pkgs.callPackage ./lib { };
|
||||
|
||||
nixowos = lib.mkIf cfg.enable {
|
||||
cli.enable = true;
|
||||
system.enable = true;
|
||||
};
|
||||
nixowos = lib.mkIf cfg.enable (
|
||||
lib.mkDefault {
|
||||
cli.enable = true;
|
||||
system.enable = true;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue