nixos/dafoe/services/ddns.nix
2024-11-06 14:03:40 +01:00

16 lines
332 B
Nix
Executable file

{ pkgs, ... }:
{
# dynamic dns
users.users.ddns = {
isSystemUser = true;
group = "ddns";
};
users.groups.ddns = {};
systemd.services.ddns-updater = {
enable = true;
serviceConfig.User = "ddns";
path = [ pkgs.curl ];
script = "${../../nix-secrets/dafoe/ddns/update}";
startAt = "hourly";
};
}