{config, ...}: let
  user = "kuma";
  dataDir = "/data/apps/uptime-kuma";
in {
  users.groups.${user} = {};
  users.users.${user} = {
    group = user;
    home = dataDir;
    isSystemUser = true;
  };

  # Create Directories
  systemd.tmpfiles.rules = [
    "d ${dataDir} 0755 ${user} ${user}"
  ];

  # https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/virtualisation/oci-containers.nix
  virtualisation.oci-containers.containers = {
    # check its logs via `journalctl -u podman-homepage`
    uptime-kuma = {
      hostname = "uptime-kuma";
      image = "louislam/uptime-kuma:1";
      ports = ["127.0.0.1:53350:3001"];
      # https://github.com/louislam/uptime-kuma/wiki/Environment-Variables
      environment = {
        # "PUID" = config.users.users.${user}.uid;
        # "PGID" = config.users.groups.${user}.gid;
      };
      volumes = [
        "${dataDir}:/app/data"
      ];
      autoStart = true;
    };
  };
}
