feat: set up agenix secrets management

This commit is contained in:
Felix Schröter 2022-05-04 03:02:47 +02:00
parent cc6226d335
commit 5f329f550e
Signed by: felschr
GPG key ID: 671E39E6744C807D
32 changed files with 279 additions and 44 deletions

View file

@ -2,24 +2,25 @@
let port = 28981;
in {
services.paperless-ng = {
enable = true;
inherit port;
passwordFile = "/etc/nixos/secrets/paperless";
extraConfig = {
PAPERLESS_ADMIN_USER = "felschr";
PAPERLESS_OCR_LANGUAGE = "deu+eng";
};
};
/* services.paperless-ng = {
enable = true;
inherit port;
passwordFile = config.age.secrets.paperless.path;
extraConfig = {
PAPERLESS_ADMIN_USER = "felschr";
PAPERLESS_OCR_LANGUAGE = "deu+eng";
};
};
services.nginx = {
virtualHosts."paperless.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
};
};
services.nginx = {
virtualHosts."paperless.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
};
};
*/
}