From 3e232a2bc7f5c8ea33804be1ea071a91c5f98055 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 24 Apr 2026 01:48:30 +0530 Subject: replacing tools with programs to be more consistent with config options --- modules/tools/git/default.nix | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 modules/tools/git/default.nix (limited to 'modules/tools/git') diff --git a/modules/tools/git/default.nix b/modules/tools/git/default.nix deleted file mode 100644 index 6a34fd4..0000000 --- a/modules/tools/git/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ lib, config, ... }: - -# Git - Distributed version control system -{ - options.tools.git = { - enable = lib.mkEnableOption "Enables git."; - username = lib.mkOption { - type = lib.types.str; - description = "Git username."; - }; - email = lib.mkOption { - type = lib.types.str; - description = "Git email."; - }; - }; - - config = lib.mkIf config.tools.git.enable { - programs.git = { - enable = true; - settings = { - user = { - name = config.tools.git.username; - email = config.tools.git.email; - }; - credential.helper = "store --file ${config.xdg.cacheHome}/git/credential"; - core.askPass = ""; - }; - }; - - # The base directory of the credential file must exist - home.activation.createGitCacheDirectory = lib.hm.dag.entryAfter [ - "writeBoundary" - ] "mkdir -p ${config.xdg.cacheHome}/git"; - }; -} -- cgit v1.2.3