configurable git email and name
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
{ pkgs, ... } :
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = "Armel van Ravels";
|
||||
email = "armel@armel.nl";
|
||||
options.home.git = {
|
||||
userName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "Armel van Ravels";
|
||||
description = "Default git user.name for this user";
|
||||
};
|
||||
|
||||
userEmail = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "armel@armel.nl";
|
||||
description = "Default git user.email for this user";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = config.home.git.userName;
|
||||
email = config.home.git.userEmail;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user