mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
parent
e8b5f8f9b3
commit
ec58f8bed7
2 changed files with 18 additions and 0 deletions
|
@ -134,6 +134,10 @@ let
|
|||
|
||||
extraConfig = extraConfigOption;
|
||||
};
|
||||
|
||||
output = { extraConfig = extraConfigOption; };
|
||||
|
||||
hooks = { extraConfig = extraConfigOption; };
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -168,6 +172,8 @@ let
|
|||
} // config.retention.extraConfig;
|
||||
consistency = removeNullValues { checks = config.consistency.checks; }
|
||||
// config.consistency.extraConfig;
|
||||
output = config.output.extraConfig;
|
||||
hooks = config.hooks.extraConfig;
|
||||
};
|
||||
in {
|
||||
meta.maintainers = [ maintainers.DamienCassou ];
|
||||
|
|
|
@ -44,6 +44,12 @@ in {
|
|||
|
||||
extraConfig = { prefix = "hostname"; };
|
||||
};
|
||||
|
||||
output = { extraConfig = { color = false; }; };
|
||||
|
||||
hooks = {
|
||||
extraConfig = { before_actions = [ "echo Starting actions." ]; };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -96,6 +102,12 @@ in {
|
|||
(builtins.elemAt backups.main.consistency.checks 1).frequency
|
||||
}"
|
||||
expectations[consistency.prefix]="${backups.main.consistency.extraConfig.prefix}"
|
||||
expectations[output.color]="${
|
||||
boolToString backups.main.output.extraConfig.color
|
||||
}"
|
||||
expectations[hooks.before_actions[0]]="${
|
||||
builtins.elemAt backups.main.hooks.extraConfig.before_actions 0
|
||||
}"
|
||||
|
||||
yq=${pkgs.yq-go}/bin/yq
|
||||
|
||||
|
|
Loading…
Reference in a new issue