mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-12 23:27:17 +00:00
Make git username&email custom options
This commit is contained in:
parent
e121bf2c40
commit
b58cf4604c
|
@ -13,8 +13,8 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitAndTools.gitFull;
|
package = pkgs.gitAndTools.gitFull;
|
||||||
|
|
||||||
userName = "ItsDrike";
|
userName = myGitConf.userName;
|
||||||
userEmail = "itsdrike@protonmail.com";
|
userEmail = myGitConf.userEmail;
|
||||||
|
|
||||||
signing = {
|
signing = {
|
||||||
signByDefault = myGitConf.signing.enabled;
|
signByDefault = myGitConf.signing.enabled;
|
||||||
|
|
|
@ -30,7 +30,11 @@
|
||||||
home-manager = {
|
home-manager = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
git.signing.key = "FA2745890B7048C0";
|
git = {
|
||||||
|
userName = "ItsDrike";
|
||||||
|
userEmail = "itsdrike@protonmail.com";
|
||||||
|
signing.key = "FA2745890B7048C0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,17 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.myOptions.home-manager.git = {
|
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 = {
|
signing = {
|
||||||
enabled = mkOption {
|
enabled = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|
Loading…
Reference in a new issue