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 = {
enable = true;
userEmail = "ybarbanneau@sellsy.com";
signingKey ="6E1A834E282FBD98B48069444447A19BBEDB8DBA";
signByDefault = true;
};
neovim.enable = true;
starship.enable = true;

View file

@ -18,6 +18,18 @@ in
default = "ephase@xieme-art.org";
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 {
programs.git = {
@ -34,6 +46,8 @@ in
package = pkgs.gitFull;
userName = "${cfg.userName}";
userEmail = "${cfg.userEmail}";
signing.key = "${cfg.signingKey}";
signing.signByDefault = cfg.signByDefault;
aliases = {
co = "checkout";
fa = "fetch --all";