stream timer fixed
This commit is contained in:
@@ -824,22 +824,7 @@ in [ myPkg ];
|
|||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
services = let
|
services = {
|
||||||
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 {
|
|
||||||
"stream@" = {
|
"stream@" = {
|
||||||
description = "monitors a stream channel for online streams.";
|
description = "monitors a stream channel for online streams.";
|
||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
@@ -854,9 +839,6 @@ in [ myPkg ];
|
|||||||
ExecStart = "${jawzStream}/bin/stream-dl %I";
|
ExecStart = "${jawzStream}/bin/stream-dl %I";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"stream-johnneal911" = streamService "johnneal911" // { };
|
|
||||||
"stream-uk2011boy" = streamService "uk2011boy" // { };
|
|
||||||
"stream-tomayto\x20picarto" = streamService "tomayto\x20picarto" // { };
|
|
||||||
# unpackerr = {
|
# unpackerr = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# restartIfChanged = true;
|
# restartIfChanged = true;
|
||||||
@@ -926,9 +908,10 @@ in [ myPkg ];
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
"stream-johnneal911" = streamTimer // { };
|
"stream@johnneal911" = streamTimer // { };
|
||||||
"stream-uk2011boy" = streamTimer // { };
|
"stream@uk2011boy" = streamTimer // { };
|
||||||
"stream-tomayto\x20picarto" = streamTimer // { };
|
"stream@tomayto\\x20picarto" = streamTimer // { };
|
||||||
|
"stream@retrohurricaneLIVE\\x20picarto" = streamTimer // { };
|
||||||
# tasks = {
|
# tasks = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# description = "Run a tasks script which keeps a lot of things organized";
|
# description = "Run a tasks script which keeps a lot of things organized";
|
||||||
|
|||||||
Reference in New Issue
Block a user