From 36c16a56c366d78e5a11b06b4e4019b361f2e817 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 2 Sep 2024 11:25:23 +0200 Subject: ... --- accounts/gkleen@sif/systemd.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'accounts/gkleen@sif/systemd.nix') diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 20db64a0..d654811e 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -287,8 +287,9 @@ in { WatchdogSec = "30min"; Environment = [ "PATH=${lib.makeBinPath (with pkgs; [atomicparsley ffmpeg-headless rtmpdump])}" + "DSCP=8" ]; - ExecStart = pkgs.writers.writePython3 "yt-dlp" { + ExecStart = ''${lib.getExe pkgs.dscp} ${pkgs.writers.writePython3 "yt-dlp" { libraries = with pkgs.python3Packages; [ yt-dlp sdnotify ]; } '' import json @@ -316,7 +317,7 @@ in { with YoutubeDL(ydl_opts) as ytdl: n.notify('READY=1') ytdl.download(args['urls']) - ''; + ''}''; ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; }; }; -- cgit v1.2.3