diff options
Diffstat (limited to 'modules/tools/git')
| -rw-r--r-- | modules/tools/git/default.nix | 35 |
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"; - }; -} |
