mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 15:00:14 +00:00
modify git config for work
This commit is contained in:
@ -5,9 +5,9 @@ let home-packages = config.home-manager.users.${config.user}.home.packages;
|
||||
in {
|
||||
|
||||
options = {
|
||||
fullName = lib.mkOption {
|
||||
gitName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Human readable name of the user";
|
||||
description = "Name to use for git commits";
|
||||
};
|
||||
gitEmail = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
@ -25,7 +25,7 @@ in {
|
||||
home-manager.users.${config.user} = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = config.fullName;
|
||||
userName = config.gitName;
|
||||
userEmail = config.gitEmail;
|
||||
extraConfig = {
|
||||
pager = { branch = "false"; };
|
||||
|
Reference in New Issue
Block a user