mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
30 lines
456 B
Nix
30 lines
456 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
services.uptime-kuma = {
|
|
enable = false;
|
|
settings = {
|
|
PORT = "4001";
|
|
HOST = "0.0.0.0";
|
|
};
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"z ${xlib.dirs.services-mnt-folder}/uptime-kuma 0755 nobody nogroup -"
|
|
];
|
|
|
|
fileSystems."/var/lib/private/uptime-kuma" = {
|
|
device = "${xlib.dirs.services-mnt-folder}/uptime-kuma";
|
|
options = [
|
|
"bind"
|
|
"nofail"
|
|
];
|
|
};
|
|
}
|