mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 04:04:35 +00:00
Make git username&email custom options
This commit is contained in:
parent
e121bf2c40
commit
b58cf4604c
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue