stream timer fixed

This commit is contained in:
Danilo Reyes 2024-04-03 22:27:52 -06:00
parent 6bdb9f82f2
commit da91eb3699

View File

@ -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";