Modules: Add git module
This commit is contained in:
25
home/modules/git/options.nix
Normal file
25
home/modules/git/options.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}: {
|
||||
enable = lib.mkEnableOption "Enable git";
|
||||
|
||||
userName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The user's name";
|
||||
example = ''
|
||||
"John Doe"
|
||||
'';
|
||||
};
|
||||
|
||||
userEmail = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The user's email address";
|
||||
example = ''
|
||||
"john@doe.com"
|
||||
'';
|
||||
};
|
||||
|
||||
signCommits = lib.mkEnableOption "Enable commit signing";
|
||||
}
|
Reference in New Issue
Block a user