download & stream-dl units + ryot disabled
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
stream-dl = pkgs.writeScriptBin "stream-dl"
|
||||
(builtins.readFile ../../scripts/stream-dl.sh);
|
||||
in {
|
||||
{ pkgs, ... }: {
|
||||
imports =
|
||||
[ ./servers.nix ./docker.nix ./hardware-configuration.nix ../../base.nix ];
|
||||
my = {
|
||||
@@ -15,6 +11,10 @@ in {
|
||||
python.enable = true;
|
||||
sh.enable = true;
|
||||
};
|
||||
units = {
|
||||
download.enable = true;
|
||||
stream-dl.enable = true;
|
||||
};
|
||||
scripts = {
|
||||
run.enable = true;
|
||||
split-dir.enable = true;
|
||||
@@ -120,20 +120,8 @@ in {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
};
|
||||
timers = { };
|
||||
user = {
|
||||
services = {
|
||||
"stream@" = {
|
||||
description = "monitors a stream channel for online streams.";
|
||||
restartIfChanged = true;
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [ pkgs.nix stream-dl ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 30;
|
||||
ExecStart = "${stream-dl}/bin/stream-dl %I";
|
||||
};
|
||||
};
|
||||
# unpackerr = {
|
||||
# enable = true;
|
||||
# restartIfChanged = true;
|
||||
@@ -159,29 +147,11 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
timers = let
|
||||
streamTimer = {
|
||||
enable = true;
|
||||
description = "monitors a stream channel for online streams.";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "5min";
|
||||
OnUnitActiveSec = "65min";
|
||||
RandomizedDelaySec = 30;
|
||||
};
|
||||
};
|
||||
in {
|
||||
"stream@johnneal911" = streamTimer // { };
|
||||
"stream@uk2011boy" = streamTimer // { };
|
||||
"stream@tommy9x6" = streamTimer // { };
|
||||
"stream@brocollirob" = streamTimer // { };
|
||||
"stream@tomayto\\x20picarto" = streamTimer // { };
|
||||
qbit_manage = {
|
||||
enable = true;
|
||||
description = "Tidy up my torrents";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = { OnCalendar = "*:0/10"; };
|
||||
};
|
||||
timers.qbit_manage = {
|
||||
enable = true;
|
||||
description = "Tidy up my torrents";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = { OnCalendar = "*:0/10"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -60,24 +60,24 @@
|
||||
[ "/var/lib/docker-configs/vocechat:/home/vocechat-server/data" ];
|
||||
environment = { TZ = "America/Mexico_City"; };
|
||||
};
|
||||
ryot = {
|
||||
image = "ghcr.io/ignisda/ryot:latest";
|
||||
ports = [ "8765:8000" ];
|
||||
environment = {
|
||||
TZ = "America/Mexico_City";
|
||||
DATABASE_URL = "postgres:///ryot?host=${postgresSocket}";
|
||||
SERVER_INSECURE_COOKIE = "true";
|
||||
VIDEO_GAMES_TWITCH_CLIENT_ID = "tfu0hw0zbdbu4lco4h72nqkb8krxp9";
|
||||
VIDEO_GAMES_TWITCH_CLIENT_SECRET = "582ecfb01ihv6wnt8zbc9pf3hs9p54";
|
||||
};
|
||||
volumes = [ "${postgresSocket}:${postgresSocket}" ];
|
||||
labels = {
|
||||
"flame.type" = "application";
|
||||
"flame.name" = "Ryot";
|
||||
"flame.url" = "tracker.servidos.lat";
|
||||
"flame.icon" = "radar";
|
||||
};
|
||||
};
|
||||
# ryot = {
|
||||
# image = "ghcr.io/ignisda/ryot:v5.5.0";
|
||||
# ports = [ "8765:8000" ];
|
||||
# environment = {
|
||||
# TZ = "America/Mexico_City";
|
||||
# DATABASE_URL = "postgres:///ryot?host=${postgresSocket}";
|
||||
# # FRONTEND_INSECURE_COOKIES = "true";
|
||||
# VIDEO_GAMES_TWITCH_CLIENT_ID = "tfu0hw0zbdbu4lco4h72nqkb8krxp9";
|
||||
# VIDEO_GAMES_TWITCH_CLIENT_SECRET = "582ecfb01ihv6wnt8zbc9pf3hs9p54";
|
||||
# };
|
||||
# volumes = [ "${postgresSocket}:${postgresSocket}" ];
|
||||
# labels = {
|
||||
# "flame.type" = "application";
|
||||
# "flame.name" = "Ryot";
|
||||
# "flame.url" = "tracker.servidos.lat";
|
||||
# "flame.icon" = "radar";
|
||||
# };
|
||||
# };
|
||||
multi-scrobbler = {
|
||||
image = "foxxmd/multi-scrobbler";
|
||||
ports = [ "9078:9078" ];
|
||||
|
||||
@@ -90,6 +90,11 @@ in {
|
||||
jellyfin = base // { };
|
||||
# prowlarr.enable = true;
|
||||
# jira.enable = true;
|
||||
# adguardhome = {
|
||||
# enable = true;
|
||||
# mutableSettings = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
microbin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
@@ -218,7 +223,7 @@ in {
|
||||
"OC\\Preview\\Movie"
|
||||
];
|
||||
};
|
||||
phpExtraExtensions = all: [ all.pdlib all.bz2 ];
|
||||
phpExtraExtensions = all: [ all.pdlib all.bz2 all.ldap ];
|
||||
};
|
||||
postgresql = let
|
||||
dbNames =
|
||||
@@ -240,7 +245,7 @@ in {
|
||||
};
|
||||
systemd = {
|
||||
services = {
|
||||
nextcloud-cron = { path = [ pkgs.perl ]; };
|
||||
nextcloud-cron.path = [ pkgs.perl ];
|
||||
# sub-sync = {
|
||||
# restartIfChanged = true;
|
||||
# description = "syncronizes subtitles downloaded & modified today";
|
||||
|
||||
Reference in New Issue
Block a user