From 9732a518a501949b88cd60e92f266c5a1e2891fe Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 3 Nov 2021 17:12:42 +0100 Subject: [PATCH] modules: services: paperless: persist data --- modules/services/paperless/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/services/paperless/default.nix b/modules/services/paperless/default.nix index e9ec6a3..11fd9e8 100644 --- a/modules/services/paperless/default.nix +++ b/modules/services/paperless/default.nix @@ -142,5 +142,10 @@ in config.services.paperless-ng.mediaDir ]; }; + + my.system.persist.directories = [ + config.services.paperless-ng.dataDir + config.services.paperless-ng.mediaDir + ]; }; }