17 lines
366 B
Nix
17 lines
366 B
Nix
# Module: roles/monitorserver
|
|
# Enables server monitoring using HealthChecks and Uptime Kuma
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.monitorserver;
|
|
in {
|
|
options.monitorserver = {
|
|
enable = mkEnableOption "Enables monitorserver role";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
imports = [ ../apps/healthchecks.nix ../apps/uptime-kuma.nix ];
|
|
};
|
|
}
|