vno1-rp3b

This commit is contained in:
2023-08-15 07:09:11 +03:00
parent ac2cdc0696
commit 4354cde55e
4 changed files with 122 additions and 2 deletions

View File

@@ -9,7 +9,10 @@
options.mj.base.unitstatus = with lib.types; {
enable = lib.mkEnableOption "alert by email on unit failure";
email = lib.mkOption {type = str;};
units = lib.mkOption {type = listOf str;};
units = lib.mkOption {
type = listOf str;
default = [];
};
};
config = lib.mkIf config.mj.base.unitstatus.enable {