{ pkgs, ... }: { systemd.user.services.backup-home = { Unit = { Description = "Backup home directory"; After = [ "network.target" ]; }; Service = { Type = "oneshot"; ExecStart = "/home/torjus/.local/bin/backup-home"; }; }; systemd.user.timers.backup-home = { Unit = { Description = "Backup home directory"; After = [ "network.target" ]; }; Timer = { OnCalendar = "*-*-* 00:00:00"; Persistent = true; }; Install = { WantedBy = [ "timers.target" ]; }; }; }