Skip to content

Instantly share code, notes, and snippets.

@lheckemann
Created October 31, 2019 14:07
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 lheckemann/8bce78d6199f3c8ad38bd9e10c91b4ba to your computer and use it in GitHub Desktop.
Save lheckemann/8bce78d6199f3c8ad38bd9e10c91b4ba to your computer and use it in GitHub Desktop.
{
systemd.services.clear-scratch = {
serviceConfig.ExecStart = "/run/booted-system/sw/bin/zfs rollback bringtnix/scratch@empty";
};
systemd.timers.clear-scratch = {
timerConfig.OnCalendar = "03:00";
timerConfig.Persistent = true;
wantedBy = ["multi-user.target"];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment