From da91eb36997725ccbef50cb116117b532f1f33b7 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Wed, 3 Apr 2024 22:27:52 -0600 Subject: [PATCH] stream timer fixed --- server/configuration.org | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/server/configuration.org b/server/configuration.org index 46f2d11..dc3a476 100644 --- a/server/configuration.org +++ b/server/configuration.org @@ -824,22 +824,7 @@ in [ myPkg ]; # }; }; user = { - services = let - streamService = channel: { - description = "monitors a stream channel for online streams."; - restartIfChanged = true; - wantedBy = [ "default.target" ]; - path = [ - pkgs.nix - jawzStream - ]; - serviceConfig = { - Restart = "on-failure"; - RestartSec = 30; - ExecStart = "${jawzStream}/bin/stream-dl ${channel}"; - }; - }; - in { + services = { "stream@" = { description = "monitors a stream channel for online streams."; restartIfChanged = true; @@ -854,9 +839,6 @@ in [ myPkg ]; ExecStart = "${jawzStream}/bin/stream-dl %I"; }; }; - "stream-johnneal911" = streamService "johnneal911" // { }; - "stream-uk2011boy" = streamService "uk2011boy" // { }; - "stream-tomayto\x20picarto" = streamService "tomayto\x20picarto" // { }; # unpackerr = { # enable = true; # restartIfChanged = true; @@ -926,9 +908,10 @@ in [ myPkg ]; }; }; in { - "stream-johnneal911" = streamTimer // { }; - "stream-uk2011boy" = streamTimer // { }; - "stream-tomayto\x20picarto" = streamTimer // { }; + "stream@johnneal911" = streamTimer // { }; + "stream@uk2011boy" = streamTimer // { }; + "stream@tomayto\\x20picarto" = streamTimer // { }; + "stream@retrohurricaneLIVE\\x20picarto" = streamTimer // { }; # tasks = { # enable = true; # description = "Run a tasks script which keeps a lot of things organized";