about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-03-05 22:56:05 +0100
committerProfpatsch <mail@profpatsch.de>2021-03-05 22:56:29 +0100
commit2b182dc40d3b31887b044a45cfc90de864ff61fb (patch)
treea746d153032bddaedcd44f44ee315829d66b4f28 /machines/profpatsch
parent68f069ffc6c0d0d9a907dd636c4d934f34ae462f (diff)
machines/shiki: do a barrel roll!
Do a barrel roll!
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/shiki.nix18
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";
+          };
+        };
       }