From 7979ef9c824d37a861de45ed69f39d1d0d9b8fde Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet Date: Tue, 17 Mar 2026 21:38:54 +0100 Subject: [PATCH] paperless: enforce data directory presence In the case of mounted directories, systemd needs to know that this unit depends on this path to add the adequate dependency. (Technically: these units, but adding one dependency is sufficient). --- nixos/modules/services/misc/paperless.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 38a77f7aaace..9df4e99ff9a5 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -485,6 +485,7 @@ in PrivateNetwork = cfg.database.createLocally; # defaultServiceConfig enables this by default, needs to be disabled for remote DBs }; environment = env; + unitConfig.RequiresMountsFor = defaultServiceConfig.ReadWritePaths; preStart = '' # remove old papaerless-manage symlink