From 1474caa8f624aa568ea011629d1aec4ae2aca3c1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:03:12 +0530 Subject: Using fzf as the application launcher. --- modules/tools/git/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'modules/tools/git') 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 = ""; -- cgit v1.2.3