Files
vps-nixos/hosts/common/optional/remnawave/panel/postgresql/config.nix
T
aloslider 01b75b0584 Init
Initial commit, nodes are mostly done, panel is WIP
2026-11-17 10:43:26 +03:00

20 lines
405 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.vps.remnawave;
in
{
config = mkIf (cfg.enable && cfg.type == "panel") {
sops.secrets = {
"panel/postgres-password" = { };
};
sops.templates."remnawave-db.env".content = ''
POSTGRES_USER=postgres
POSTGRES_PASSWORD=${config.sops.placeholder."panel/postgres-password"}
POSTGRES_DB=postgres
TZ=UTC
'';
};
}