about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-16 17:05:00 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-16 17:05:00 +0100
commitbfe18514b8f4c2b9cd9e1ad9fb8507ca46e5f120 (patch)
tree8344e04cb8d6380247e3b7aa3947f4e01a769215 /machines
parent2fad61a1d34ec9af8469b38e1a916c69da507593 (diff)
downloaddots-bfe18514b8f4c2b9cd9e1ad9fb8507ca46e5f120.tar.gz
dots-bfe18514b8f4c2b9cd9e1ad9fb8507ca46e5f120.zip
Remove shuffle
Diffstat (limited to 'machines')
-rw-r--r--machines/srv1/configuration.nix21
1 files changed, 0 insertions, 21 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index 602027b..ff7b6a1 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -183,27 +183,6 @@ in
       };
     };
 
-    services.shuffle = {
-      script = ''
-        cd /var/www/pics.srv1.niedzwiedzinski.cyou
-        curr=`ls *-badeny2021 -d`
-        [ -d $curr ] || exit 130
-        random=`cat /dev/urandom | tr -cd 'a-f0-9' | head -c 16`
-        mv $curr $random-badeny2021
-        echo "<a href='/$random-badeny2021'>https://pics.srv1.niedzwiedzinski.cyou/$random-badeny2021</a>" > krol_tedium.html
-      '';
-      serviceConfig = {
-        Type = "oneshot";
-      };
-    };
-    timers.shuffle = {
-      partOf = ["shuffle.service"];
-      wantedBy = ["timers.target"];
-      timerConfig = {
-        OnCalendar = "daily";
-        Unit = "shuffle.service";
-      };
-    };
   };
 
   services.lighttpd = {