From bfe18514b8f4c2b9cd9e1ad9fb8507ca46e5f120 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 16 Mar 2021 17:05:00 +0100 Subject: Remove shuffle --- machines/srv1/configuration.nix | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'machines/srv1') 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 "https://pics.srv1.niedzwiedzinski.cyou/$random-badeny2021" > krol_tedium.html - ''; - serviceConfig = { - Type = "oneshot"; - }; - }; - timers.shuffle = { - partOf = ["shuffle.service"]; - wantedBy = ["timers.target"]; - timerConfig = { - OnCalendar = "daily"; - Unit = "shuffle.service"; - }; - }; }; services.lighttpd = { -- cgit 1.4.1