diff options
author | Profpatsch <mail@profpatsch.de> | 2021-03-05 22:56:05 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-03-05 22:56:29 +0100 |
commit | 2b182dc40d3b31887b044a45cfc90de864ff61fb (patch) | |
tree | a746d153032bddaedcd44f44ee315829d66b4f28 /machines/profpatsch/shiki.nix | |
parent | 68f069ffc6c0d0d9a907dd636c4d934f34ae462f (diff) |
machines/shiki: do a barrel roll!
Do a barrel roll!
Diffstat (limited to 'machines/profpatsch/shiki.nix')
-rw-r--r-- | machines/profpatsch/shiki.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index e47d3361..1ee8702d 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -465,6 +465,24 @@ in { }; }; + services.barrel-roll = { + description = "do a barrel roll"; + serviceConfig = { + Restart = "no"; + ExecStart = "${pkgs.writers.writeDash "barrel-roll" '' + ${pkgs.libnotify}/bin/notify-send --urgency=critical "Do a barrel roll!" + ''}"; + }; + }; + timers.barrel-roll = { + description = "do a barrel roll every hour"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnStartupSec="10m"; + OnUnitActiveSec ="1h"; + AccuracySec="15m"; + }; + }; } |