fix(non-clicks): Ensure all modules start disabled
Clicks wants some modules (our backups, secrets and users) enabled by
default. Auxolotl wants to import our modules, and they don't want any
of this stuff.
Importing modules one-by-one is a potential solution, but is rather
messy given things like impermanence which is depended on in lots of
places. It's much cleaner to know whether the current flake is Clicks
and enable/disable defaults based on that
Change-Id: Icfb6d7bacdfbc31f1904ea4a1b6d6e577b03fa09
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/802
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/nixos/clicks/users/minion/default.nix b/modules/nixos/clicks/users/minion/default.nix
index 7b3c2ee..c5f65e0 100644
--- a/modules/nixos/clicks/users/minion/default.nix
+++ b/modules/nixos/clicks/users/minion/default.nix
@@ -7,7 +7,7 @@
options = {
clicks.users.minion.enable = lib.mkOption {
type = lib.types.bool;
- default = true;
+ default = config.clicks.defaults.enable;
};
};