diff --git a/hosts/pie/paperless.nix b/hosts/pie/paperless.nix index a06e4c6..a9204fc 100644 --- a/hosts/pie/paperless.nix +++ b/hosts/pie/paperless.nix @@ -41,6 +41,12 @@ with lib; let echo "PDF written to $pdf" ''; in { + age.secrets."paperless.env" = { + file = "${flake.self}/secrets/paperless.env.age"; + mode = "400"; + owner = "paperless"; + }; + ################################# # Paperless service and proxy ################################# @@ -72,9 +78,12 @@ in { PAPERLESS_URL = "https://paperless.b12f.io"; PAPERLESS_DISABLE_REGULAR_LOGIN = "True"; PAPERLESS_ENABLE_HTTP_REMOTE_USER = "True"; + PAPERLESS_EMAIL_TASK_CRON = "*/2 * * * *"; }; }; + systemd.services.paperless-web.serviceConfig.EnvironmentFile = [ config.age.secrets."paperless.env".path ]; + ################################# # Scanning ################################# diff --git a/secrets/paperless.env.age b/secrets/paperless.env.age new file mode 100644 index 0000000..c08c54c --- /dev/null +++ b/secrets/paperless.env.age @@ -0,0 +1,23 @@ +age-encryption.org/v1 +-> ssh-ed25519 8bHz7g V83fHF4xfcKbAGvzobBAZEgqf+lgCTF/sj4yf4sjx1k +CkOTE/iiNrVQaGuHMjj04ve53113SQdmEkVKlUruKTM +-> ssh-rsa kFDS0A +cbM5X8HBvDDDhDVazfKnMmsoI3mR2ThUMROOAMrpInC7wQPkoOax18fJRRqkGRvq +itu2A+n0YC8jUcdFb23Qfcuin56ODORpXlDRIEm31Z3TKMtsMYXvDSb4T62jjccA +WNQdzQoHrOGWYE5j7u+6PvYkBZ1XiKIqknz6cOzFDaV5TAJes93q11x+3n+uYa7S +IPae6LI6yTlQYEx6Y34oPHtJk3o3ekwXd44KJjJZH2WFV5z+U8Kpjvdoeq2dW/Jm +9En5rFCOunsbmgRO1i5/WvLVmH88mDxQetBACJWShgzDYPl8GS4xOvC48zFibAFU ++mBoL+EDgVIkG0s4ZMHsjzu1Bf0bqcwvJVxhB4F0f3MkpGimf8XtimQh1PqMlqVs +8QeyXWZDvmPyJ1DVTF3tp4fFrtbGz0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