initial commit for module-refactor
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
{username, ...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "${username}@gmail.com";
|
||||
userName = "${username}";
|
||||
{lib, config, username, ...}: {
|
||||
options = {
|
||||
gitConfig.enable = lib.mkEnableOption "enables my git configuration";
|
||||
};
|
||||
config = lib.mkIf config.gitConfig.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "${username}@gmail.com";
|
||||
userName = "${username}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user