feat(git): enable the module per host rather than by default

Defaulting the module on hid it from a host's config, leaving no single
place that lists what a host carries. Each host enables it explicitly
instead, at the cost of a step when adding one.
This commit is contained in:
2026-07-20 12:20:13 -04:00
parent 75c5745cbd
commit 62eb6286b4
4 changed files with 8 additions and 16 deletions

View File

@@ -9,17 +9,8 @@ let
user = config.user.name;
in
{
options.modules.git.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = ''
Whether to configure git for the primary user, carrying the operator's
commit identity.
On by default, so every host can commit without restating it. A host that
should not carry a personal commit identity sets this to false.
'';
};
options.modules.git.enable =
lib.mkEnableOption "git for the primary user, carrying the operator's commit identity";
config = lib.mkIf cfg.enable {
home-manager.users.${user}.programs.git = {