From 2b182dc40d3b31887b044a45cfc90de864ff61fb Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 5 Mar 2021 22:56:05 +0100 Subject: machines/shiki: do a barrel roll! Do a barrel roll! --- machines/profpatsch/shiki.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'machines/profpatsch') 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"; + }; + }; } -- cgit 1.4.1