mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
31 lines
491 B
Nix
31 lines
491 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
targetDir = "/var/lib/private/uptime-kuma";
|
|
sourceDir = "${xlib.dirs.services-mnt-folder}/uptime-kuma";
|
|
in
|
|
{
|
|
services.uptime-kuma = {
|
|
enable = true;
|
|
settings = {
|
|
PORT = "4001";
|
|
HOST = "0.0.0.0";
|
|
};
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
(xlib.helpers.mkTmpfile "z" sourceDir "0755" "nobody" "nogroup")
|
|
];
|
|
|
|
fileSystems = xlib.helpers.mkBindMount {
|
|
what = sourceDir;
|
|
where = targetDir;
|
|
};
|
|
}
|