diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-10 02:05:18 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-10 02:05:18 +0530 |
| commit | bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e (patch) | |
| tree | 596912421d29f6e58a9a45108df52cb4e1e68876 /modules/programs/git | |
| parent | ee32d0d0813f9870d89fb7d821633fd8b4a9987a (diff) | |
| download | home-manager-config-bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e.tar.gz home-manager-config-bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e.zip | |
feat: using neomutt instead of meli for the tui email client
using a private module that stores the private config options for the user which are not to be pushed to the public repo
Diffstat (limited to 'modules/programs/git')
| -rw-r--r-- | modules/programs/git/default.nix | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/modules/programs/git/default.nix b/modules/programs/git/default.nix index 91498b0..cb4519d 100644 --- a/modules/programs/git/default.nix +++ b/modules/programs/git/default.nix @@ -6,7 +6,10 @@ # Git - Distributed version control system { - imports = [ ./assertions.nix ]; + imports = [ + ./assertions.nix + ] + ++ lib.optional (builtins.pathExists ../../private/git.nix) ../../private/git.nix; options.programs.git = { username = lib.mkOption { @@ -20,25 +23,10 @@ }; useSSH = lib.mkEnableOption "Use SSH instead of HTTPS for common git platforms."; - - signing = { - key = lib.mkOption { - type = lib.types.nullOr lib.types.str; - default = null; - description = "GPG signing key ID."; - }; - signByDefault = lib.mkEnableOption "Sign commits by default"; - }; }; config = lib.mkIf config.programs.git.enable { programs.git = { - includes = [ - { - path = "${config.xdg.configHome}/git/personal"; - condition = "hasconfig:remote.*.url:git@*"; - } - ]; settings = lib.recursiveUpdate { @@ -57,13 +45,6 @@ url."git@git.sr.ht:".insteadOf = "https://git.sr.ht/"; } ); - extraConfig = { - user.signingKey = lib.mkIf ( - config.programs.git.signing.key != null - ) config.programs.git.signing.key; - commit.gpgSign = config.programs.git.signing.signByDefault; - tag.forceSignAnnotated = config.programs.git.signing.signByDefault; - }; }; }; } |
