diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-16 02:11:26 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-16 02:11:26 -0800 |
commit | 1a3486d77574c06b395ab6cda41084f5ed24a3f4 (patch) | |
tree | 69d1051bd14a0c3cb374f84a8c06cb655eba509b /nix/modules/home/git.nix | |
parent | 2dff9d2b61244fed49136028d0e0f6ae3ae759cf (diff) |
modularized nix configuration; builds correctly
Diffstat (limited to 'nix/modules/home/git.nix')
-rw-r--r-- | nix/modules/home/git.nix | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/nix/modules/home/git.nix b/nix/modules/home/git.nix index 84f3b0f..d019ddb 100644 --- a/nix/modules/home/git.nix +++ b/nix/modules/home/git.nix @@ -1,22 +1,24 @@ { lib, config, ... }: { - enable = lib.mkDefault config.monorepo.profiles.home.enable; - userName = config.vars.fullName; - userEmail = config.vars.email; - signing = { - key = config.vars.gpgKey; - signByDefault = true; - }; + programs.git = { + enable = true; + userName = config.monorepo.vars.fullName; + userEmail = config.monorepo.profiles.email.email; + signing = { + key = config.monorepo.vars.gpgKey; + signByDefault = true; + }; - extraConfig = { - init.defaultBranch = "main"; - }; + extraConfig = { + init.defaultBranch = "main"; + }; - aliases = { - co = "checkout"; - c = "commit"; - a = "add"; - s = "switch"; - b = "branch"; + aliases = { + co = "checkout"; + c = "commit"; + a = "add"; + s = "switch"; + b = "branch"; + }; }; } |