Add paperless-ngx
This commit is contained in:
1 parent
0bfdb35014
commit
a459f9cc57
8 files changed
+348
No files matched your search
@@ -0,0 +1,18 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
rootCfg = config.selfhosted.docs-manager;
|
||||
in
|
||||
{
|
||||
config = mkIf rootCfg.enable {
|
||||
sops.secrets = {
|
||||
"paperless-ngx/db_password" = { };
|
||||
};
|
||||
|
||||
sops.templates."paperless-ngx-db.env".content = ''
|
||||
POSTGRES_DB=paperless
|
||||
POSTGRES_USER=paperless
|
||||
POSTGRES_PASSWORD=${config.sops.placeholder."paperless-ngx/db_password"}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user