From 29dd7d96e96721c0be7f172498c6cc51c88b702e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Fri, 19 Apr 2024 18:38:01 +0200 Subject: [PATCH] feat(home): setup jujutsu identity --- home/users.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/home/users.nix b/home/users.nix index 8f23d92..1201372 100644 --- a/home/users.nix +++ b/home/users.nix @@ -12,11 +12,20 @@ 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 { - signByDefault = true; - key = signingKey; + 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 {