parent
e8b5f8f9b3
commit
ec58f8bed7
|
@ -134,6 +134,10 @@ let
|
||||||
|
|
||||||
extraConfig = extraConfigOption;
|
extraConfig = extraConfigOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
output = { extraConfig = extraConfigOption; };
|
||||||
|
|
||||||
|
hooks = { extraConfig = extraConfigOption; };
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -168,6 +172,8 @@ let
|
||||||
} // config.retention.extraConfig;
|
} // config.retention.extraConfig;
|
||||||
consistency = removeNullValues { checks = config.consistency.checks; }
|
consistency = removeNullValues { checks = config.consistency.checks; }
|
||||||
// config.consistency.extraConfig;
|
// config.consistency.extraConfig;
|
||||||
|
output = config.output.extraConfig;
|
||||||
|
hooks = config.hooks.extraConfig;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.DamienCassou ];
|
meta.maintainers = [ maintainers.DamienCassou ];
|
||||||
|
|
|
@ -44,6 +44,12 @@ in {
|
||||||
|
|
||||||
extraConfig = { prefix = "hostname"; };
|
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
|
(builtins.elemAt backups.main.consistency.checks 1).frequency
|
||||||
}"
|
}"
|
||||||
expectations[consistency.prefix]="${backups.main.consistency.extraConfig.prefix}"
|
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
|
yq=${pkgs.yq-go}/bin/yq
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue