From 767bfddead699ab582cbee81ee676c2b41695176 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 31 Aug 2022 14:37:49 +0800 Subject: [PATCH] services/yt-dlp: update config to log to journal Apparently, it doesn't really log the errors in the journal so it can make the service failed for no reason. It can be configured to redirect it to journal. --- modules/home-manager/services/yt-dlp.nix | 2 ++ modules/nixos/services/yt-dlp.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/home-manager/services/yt-dlp.nix b/modules/home-manager/services/yt-dlp.nix index 3ddc7acc..1599cf18 100644 --- a/modules/home-manager/services/yt-dlp.nix +++ b/modules/home-manager/services/yt-dlp.nix @@ -157,6 +157,8 @@ in { ${urls} --paths ${lib.escapeShellArg cfg.archivePath} ''; in "${archiveScript}/bin/${scriptName}"; + StandardOutput = "journal"; + StandardError = "journal"; }; }) cfg.jobs; diff --git a/modules/nixos/services/yt-dlp.nix b/modules/nixos/services/yt-dlp.nix index e36a19c6..08f1c76d 100644 --- a/modules/nixos/services/yt-dlp.nix +++ b/modules/nixos/services/yt-dlp.nix @@ -155,6 +155,8 @@ in { ProtectKernelLogs = true; ProtectKernelModules = true; ProtectKernelTunables = true; + StandardOutput = "journal"; + StandardError = "journal"; SystemCallFilter = "@system-service"; SystemCallErrorNumber = "EPERM"; };