Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created May 6, 2018 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinisil/66ed080ab0a61f2788ea04c533b80f36 to your computer and use it in GitHub Desktop.
Save infinisil/66ed080ab0a61f2788ea04c533b80f36 to your computer and use it in GitHub Desktop.
{ pkgs, ...}:
{
systemd.timers.sync = {
partOf = [ "sync.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "minutely";
};
systemd.services.sync = {
enable = true;
serviceConfig = {
Type = "oneshot";
User = "infinisil";
};
script = ''
echo hi
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment