feat(uptime-kuma): add enable option

This commit is contained in:
2026-05-22 20:20:46 +02:00
parent 7324873ef9
commit e0e51558b7

View File

@@ -1,9 +1,14 @@
{ {
lib,
config,
pkgs, pkgs,
... ...
}: }:
{ {
options."uptime-kuma".enable = lib.mkEnableOption "uptime-kuma";
config = lib.mkIf config."uptime-kuma".enable {
virtualisation.oci-containers = { virtualisation.oci-containers = {
backend = "docker"; backend = "docker";
containers.uptime-kuma = { containers.uptime-kuma = {
@@ -27,4 +32,5 @@
}; };
environment.systemPackages = with pkgs; [ docker-compose ]; environment.systemPackages = with pkgs; [ docker-compose ];
};
} }