Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Set `system.primaryUser`, then configure the module in the system configuration:
};
};
signingIdentity = "git-signing"; # Select the identity used by Git SSH signing.
signByDefault = true; # Sign Git commits with the Secure Enclave-backed key.
signByDefault = true; # Sign Git commits and tags with the Secure Enclave-backed key.
};
})
];
Expand Down Expand Up @@ -330,7 +330,7 @@ fingerprint.
};
};
signingIdentity = "git-signing"; # Select the identity used by Git SSH signing.
signByDefault = true; # Sign Git commits by default.
signByDefault = true; # Sign Git commits and tags by default.
};
}
```
Expand Down Expand Up @@ -378,7 +378,7 @@ Home Manager is optional. Import its module and use the same
};
};
signingIdentity = "git-signing"; # Select the identity used by Git SSH signing.
signByDefault = true; # Make Git SSH signing the default for commits.
signByDefault = true; # Make Git SSH signing the default for commits and tags.
};
}
```
Expand Down
3 changes: 3 additions & 0 deletions modules/darwin-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ let
${run-as-primary-user "/usr/bin/git"} config --global commit.gpgsign ${
if cfg.signByDefault then "true" else "false"
}
${run-as-primary-user "/usr/bin/git"} config --global tag.gpgsign ${
if cfg.signByDefault then "true" else "false"
}
''}

${github-add-commands}
Expand Down
2 changes: 1 addition & 1 deletion modules/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
signByDefault = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Whether Git commits should be SSH-signed by default.";
description = "Whether Git commits and tags should be SSH-signed by default.";
};

};
Expand Down