diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-03 22:03:12 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-03 22:03:12 +0530 |
| commit | 1474caa8f624aa568ea011629d1aec4ae2aca3c1 (patch) | |
| tree | 52ba6bda3c8b2b7839543e71271931122b587900 /modules/tools/git | |
| parent | 6349cff878c36336ed9027423aaebf98ac883501 (diff) | |
| download | home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.tar.gz home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.zip | |
Using fzf as the application launcher.
Diffstat (limited to 'modules/tools/git')
| -rw-r--r-- | modules/tools/git/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/tools/git/default.nix b/modules/tools/git/default.nix index 135cbc6..798db39 100644 --- a/modules/tools/git/default.nix +++ b/modules/tools/git/default.nix @@ -3,12 +3,20 @@ { options.tools.git = { enable = lib.mkEnableOption "Enables git."; + username = lib.mkOption { + type = lib.types.str; + description = "Github username."; + }; + email = lib.mkOption { + type = lib.types.str; + description = "Github email."; + }; }; config = lib.mkIf config.tools.git.enable { programs.git.enable = true; - programs.git.userEmail = "54011232+arpitchakladar@users.noreply.github.com"; - programs.git.userName = "Arpit Chakladar"; + programs.git.userName = config.tools.git.username; + programs.git.userEmail = config.tools.git.email; programs.git.extraConfig = { credential.helper = "store --file ${config.xdg.cacheHome}/git/credential"; core.askPass = ""; |
