about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--machines/labnet/labtops.nix4
-rw-r--r--modules/module-list.nix1
-rw-r--r--modules/user/openlab/stackenblocken.nix30
3 files changed, 34 insertions, 1 deletions
diff --git a/machines/labnet/labtops.nix b/machines/labnet/labtops.nix
index d3c076fe..6ae22caa 100644
--- a/machines/labnet/labtops.nix
+++ b/machines/labnet/labtops.nix
@@ -32,7 +32,9 @@
       tcp.anonymousClients.allowedIpRanges = [ "172.16.0.0/16" ];
       zeroconf.publish.enable = true;
     };
-    services.shairport-sync.enable = true;
+    #services.shairport-sync.enable = true;
+
+    vuizvui.user.openlab.stackenblocken.enable = true;
 
     services.logind.extraConfig = "HandleLidSwitch=ignore";
   };
diff --git a/modules/module-list.nix b/modules/module-list.nix
index e9b3eb05..c4483938 100644
--- a/modules/module-list.nix
+++ b/modules/module-list.nix
@@ -28,5 +28,6 @@
   ./user/aszlig/system/kernel.nix
   ./user/openlab/base.nix
   ./user/openlab/labtops.nix
+  ./user/openlab/stackenblocken.nix
   ./user/profpatsch/programs/scanning.nix
 ]
diff --git a/modules/user/openlab/stackenblocken.nix b/modules/user/openlab/stackenblocken.nix
new file mode 100644
index 00000000..a9299da6
--- /dev/null
+++ b/modules/user/openlab/stackenblocken.nix
@@ -0,0 +1,30 @@
+{ pkgs, config, lib, ... }:
+
+with lib;
+
+let
+  cfg = config.vuizvui.user.openlab.stackenblocken;
+
+in
+{
+  options.vuizvui.user.openlab.stackenblocken = {
+    enable = mkEnableOption "STACKENBLOCKEN EVERY DAY";
+  };
+
+  config = mkIf cfg.enable {
+
+    systemd.user = {
+      services.stackenblocken = {
+        description = "stackenblocken timer";
+        wantedBy = [ "network.target" ];
+        serviceConfig = {
+          Type = "simple";
+          ExecStart = "${lib.getBin pkgs.vuizvui.openlab.stackenblocken}/bin/stackenblocken";
+        };
+        # everyday at 21:45
+        startAt = "21:45";
+      };
+    };
+
+  };
+}