nixos-config/services/duckddns.nix

23 lines
400 B
Nix
Raw Permalink Normal View History

{pkgs, ...}:
{
systemd.timers."duckddns" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "5m";
Unit = "duckddns.service";
};
};
systemd.services."duckddns"= {
# hiding my token hehe
script = ''
bash /home/sky/duckddns.sh
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
}