feat(home): setup jujutsu identity
This commit is contained in:
parent
2519705f12
commit
29dd7d96e9
1 changed files with 14 additions and 5 deletions
|
@ -12,12 +12,21 @@ in
|
|||
{
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf hasConfig {
|
||||
programs.git.userName = cfg.defaultIdentity.name;
|
||||
programs.git.userEmail = cfg.defaultIdentity.email;
|
||||
programs.git.signing = lib.mkIf hasKey {
|
||||
programs.git = {
|
||||
userName = cfg.defaultIdentity.name;
|
||||
userEmail = cfg.defaultIdentity.email;
|
||||
signing = lib.mkIf hasKey {
|
||||
signByDefault = true;
|
||||
key = signingKey;
|
||||
};
|
||||
};
|
||||
programs.jujutsu.settings = {
|
||||
user = lib.mkIf (cfg.defaultIdentity != null) { inherit (cfg.defaultIdentity) name email; };
|
||||
signing = lib.mkIf hasKey {
|
||||
signByDefault = true;
|
||||
key = signingKey;
|
||||
};
|
||||
};
|
||||
})
|
||||
(lib.mkIf unlockKey {
|
||||
xdg.configFile.pam-gnupg.text =
|
||||
|
|
Loading…
Reference in a new issue