feat(home): setup jujutsu identity

This commit is contained in:
Jalil David Salamé Messina 2024-04-19 18:38:01 +02:00
parent 2519705f12
commit 29dd7d96e9
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -12,12 +12,21 @@ in
{ {
config = lib.mkMerge [ config = lib.mkMerge [
(lib.mkIf hasConfig { (lib.mkIf hasConfig {
programs.git.userName = cfg.defaultIdentity.name; programs.git = {
programs.git.userEmail = cfg.defaultIdentity.email; userName = cfg.defaultIdentity.name;
programs.git.signing = lib.mkIf hasKey { userEmail = cfg.defaultIdentity.email;
signing = lib.mkIf hasKey {
signByDefault = true; signByDefault = true;
key = signingKey; 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 { (lib.mkIf unlockKey {
xdg.configFile.pam-gnupg.text = xdg.configFile.pam-gnupg.text =