feat(git): carry the commit identity on every host

Default the module on rather than restating it per host, so a new host
commits without remembering the line. A host that should not carry a
personal identity sets enable to false.
This commit is contained in:
2026-07-20 11:15:15 -04:00
parent c9fc17ecf5
commit 75c5745cbd
4 changed files with 17 additions and 4 deletions

View File

@@ -9,8 +9,17 @@ let
user = config.user.name;
in
{
options.modules.git.enable =
lib.mkEnableOption "git for the primary user, carrying the operator's commit identity";
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.
'';
};
config = lib.mkIf cfg.enable {
home-manager.users.${user}.programs.git = {