Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created February 17, 2018 14:58
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/c78a24b674132cced9f3914cb7f7c2e8 to your computer and use it in GitHub Desktop.
Save infinisil/c78a24b674132cced9f3914cb7f7c2e8 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 = {
User = "infinisil";
};
script = ''
echo hi
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment