From bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 10 Jul 2026 02:05:18 +0530 Subject: 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 --- modules/programs/git/default.nix | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'modules/programs/git/default.nix') 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; - }; }; }; } -- cgit v1.2.3