Compare commits

...

2 commits

Author SHA1 Message Date
3e51630417 chore(work): activate signing 2025-04-02 15:43:27 +02:00
c31d21e382 feat(git): add signing options 2025-04-02 15:41:47 +02:00
2 changed files with 16 additions and 0 deletions

View file

@ -14,6 +14,8 @@
git = { git = {
enable = true; enable = true;
userEmail = "ybarbanneau@sellsy.com"; userEmail = "ybarbanneau@sellsy.com";
signingKey ="6E1A834E282FBD98B48069444447A19BBEDB8DBA";
signByDefault = true;
}; };
neovim.enable = true; neovim.enable = true;
starship.enable = true; starship.enable = true;

View file

@ -18,6 +18,18 @@ in
default = "ephase@xieme-art.org"; default = "ephase@xieme-art.org";
description = "git email"; description = "git email";
}; };
signingKey = mkOption {
type = types.str;
default = null;
description = "signing key fingerprint";
};
signByDefault = mkOption {
type = types.bool;
default = false;
description = "activate signing by default";
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.git = { programs.git = {
@ -34,6 +46,8 @@ in
package = pkgs.gitFull; package = pkgs.gitFull;
userName = "${cfg.userName}"; userName = "${cfg.userName}";
userEmail = "${cfg.userEmail}"; userEmail = "${cfg.userEmail}";
signing.key = "${cfg.signingKey}";
signing.signByDefault = cfg.signByDefault;
aliases = { aliases = {
co = "checkout"; co = "checkout";
fa = "fetch --all"; fa = "fetch --all";