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:
Elec3137 2026-02-16 19:31:35 -08:00
commit 4c4e2ee737
5 changed files with 10 additions and 8 deletions

View file

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