aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/git/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-04-24 01:48:30 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-04-24 01:48:30 +0530
commit3e232a2bc7f5c8ea33804be1ea071a91c5f98055 (patch)
treef772b5d7d393cacf708d845acb75b55c12d3e625 /modules/tools/git/default.nix
parent606716e0a4b8cbeb9076fb88b6b92664a5a24081 (diff)
downloadhome-manager-config-3e232a2bc7f5c8ea33804be1ea071a91c5f98055.tar.gz
home-manager-config-3e232a2bc7f5c8ea33804be1ea071a91c5f98055.zip
replacing tools with programs to be more consistent with config options
Diffstat (limited to 'modules/tools/git/default.nix')
-rw-r--r--modules/tools/git/default.nix35
1 files changed, 0 insertions, 35 deletions
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";
- };
-}