diff --git a/home/programs/terminal/tools/git/default.nix b/home/programs/terminal/tools/git/default.nix index 3761d1a..4452029 100644 --- a/home/programs/terminal/tools/git/default.nix +++ b/home/programs/terminal/tools/git/default.nix @@ -13,8 +13,8 @@ in enable = true; package = pkgs.gitAndTools.gitFull; - userName = "ItsDrike"; - userEmail = "itsdrike@protonmail.com"; + userName = myGitConf.userName; + userEmail = myGitConf.userEmail; signing = { signByDefault = myGitConf.signing.enabled; diff --git a/hosts/vbox_nix/default.nix b/hosts/vbox_nix/default.nix index 8898eda..349df30 100644 --- a/hosts/vbox_nix/default.nix +++ b/hosts/vbox_nix/default.nix @@ -30,7 +30,11 @@ home-manager = { enabled = true; stateVersion = "23.11"; - git.signing.key = "FA2745890B7048C0"; + git = { + userName = "ItsDrike"; + userEmail = "itsdrike@protonmail.com"; + signing.key = "FA2745890B7048C0"; + }; }; }; } diff --git a/options/home/git.nix b/options/home/git.nix index 9cff09b..2ff4d8b 100644 --- a/options/home/git.nix +++ b/options/home/git.nix @@ -2,6 +2,17 @@ in { options.myOptions.home-manager.git = { + userName = mkOption { + type = types.str; + default = ""; + description = "The default git user name."; + }; + userEmail = mkOption { + type = types.str; + default = ""; + description = "The default git user email."; + }; + signing = { enabled = mkOption { type = types.bool;