From 3f192fbc4002c63de5595dd7a9e50c76136ea844 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet Date: Tue, 31 Mar 2026 22:31:33 +0200 Subject: [PATCH] nixos/prowlarr: fix unit: RequiresMountsFor for data directory This helps correctness for systems which need to mount particular directories (impermanence, preservation). This option has no effect if the system does not need to mount directories / if no mountpoints exist for this directory or its parents. Signed-off-by: Nicolas Dumazet --- nixos/modules/services/misc/servarr/prowlarr.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/servarr/prowlarr.nix b/nixos/modules/services/misc/servarr/prowlarr.nix index 9682df2b161f..2ab36b5a881e 100644 --- a/nixos/modules/services/misc/servarr/prowlarr.nix +++ b/nixos/modules/services/misc/servarr/prowlarr.nix @@ -57,6 +57,7 @@ in ExecStart = "${lib.getExe cfg.package} -nobrowser -data=/var/lib/prowlarr"; Restart = "on-failure"; }; + unitConfig.RequiresMountsFor = [ cfg.dataDir ]; }; tmpfiles.settings."10-prowlarr".${cfg.dataDir}.d = lib.mkIf isCustomDataDir {