feat(git): add signing options
This commit is contained in:
parent
89d9d69fb5
commit
c31d21e382
1 changed files with 14 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue