about summary refs log tree commit diff
path: root/machines/profpatsch/shiki.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/profpatsch/shiki.nix')
-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";
+          };
+        };
       }