Configure Monit on all hosts

This commit is contained in:
Paul-Henri Froidmont 2021-12-27 05:28:51 +01:00
parent 8d31683aa0
commit 5f36ab8644
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
6 changed files with 110 additions and 20 deletions

View file

@ -20,6 +20,11 @@ in
default = "";
};
postHook = mkOption {
type = types.lines;
default = "";
};
startAt = mkOption {
type = with types; either str (listOf str);
default = "03:30";
@ -48,6 +53,7 @@ in
};
readWritePaths = cfg.readWritePaths;
preHook = cfg.preHook;
postHook = cfg.postHook;
environment = { BORG_RSH = "ssh -i ${cfg.sshKey}"; };
compression = "lz4";
startAt = cfg.startAt;