From 23484989a6d24c7e7258a3c8778489aa94dcc950 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 30 Aug 2021 20:37:18 +0200 Subject: [PATCH] modules: services: paperless: add admin password This is a fallback in case SSO stops working... --- modules/services/paperless.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/services/paperless.nix b/modules/services/paperless.nix index dd3a98b..ebb655f 100644 --- a/modules/services/paperless.nix +++ b/modules/services/paperless.nix @@ -34,6 +34,12 @@ in example = "username"; description = "Name of the administrator"; }; + + passwordFile = mkOption { + type = types.str; + example = "/var/lib/paperless/password.txt"; + description = "Read the administrator's password from this path"; + }; }; config = lib.mkIf cfg.enable { @@ -70,6 +76,9 @@ in PAPERLESS_TIME_ZONE = config.time.timeZone; PAPERLESS_ADMIN_USER = cfg.username; }; + + # Admin password + passwordFile = cfg.passwordFile; }; # Set-up database