🚀 add git identity option
parent
e427f3cd56
commit
63e3bee66c
|
@ -20,6 +20,16 @@ in
|
|||
type = types.bool;
|
||||
example = true;
|
||||
};
|
||||
identity = {
|
||||
name = mkOption {
|
||||
default = "Moritz Böhme";
|
||||
type = types.str;
|
||||
};
|
||||
email = mkOption {
|
||||
default = "mail@moritzboeh.me";
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -38,8 +48,8 @@ in
|
|||
home-manager.users.moritz = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Moritz Böhme";
|
||||
userEmail = "mail@moritzboeh.me";
|
||||
userName = cfg.identity.name;
|
||||
userEmail = cfg.identity.email;
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
merge.conflictstyle = "diff3";
|
||||
|
|
Loading…
Reference in New Issue