add includes passthrough to git module
This commit is contained in:
parent
ab89b24e84
commit
f59e56dee2
1 changed files with 7 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) nullOr str;
|
||||
inherit (lib.types) attrs listOf nullOr str;
|
||||
|
||||
delta = getExe pkgs.delta;
|
||||
in {
|
||||
|
@ -41,13 +41,18 @@ in {
|
|||
default = "main";
|
||||
description = "default git branch";
|
||||
};
|
||||
includes = mkOption {
|
||||
type = listOf attrs;
|
||||
default = [];
|
||||
description = "passthrough to the hm module";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
inherit (cfg) userName userEmail;
|
||||
inherit (cfg) userName userEmail includes;
|
||||
extraConfig = {
|
||||
core = {
|
||||
inherit (cfg) editor;
|
||||
|
|
Loading…
Reference in a new issue