modules: services: paperless: use 'secretKeyFile'

In preparation for the migration to agenix.
This commit is contained in:
Bruno BELANYI 2021-09-25 13:15:34 +02:00
parent 5579baecfb
commit 4643690b43
2 changed files with 22 additions and 5 deletions

View file

@ -103,7 +103,9 @@ in
# Insecure, I don't care
passwordFile =
builtins.toFile "paperless.env" my.secrets.paperless.password;
secretKey = my.secrets.paperless.secretKey;
secretKeyFile = builtins.toFile "paperless-key.env" ''
PAPERLESS_SECRET_KEY=${my.secrets.paperless.secretKey}
'';
};
# The whole *arr software suite
pirate.enable = true;