This commit is contained in:
soraefir
2026-05-06 01:24:32 +02:00
parent a8c8740b14
commit 4a86b856fb
2 changed files with 23 additions and 21 deletions

View File

@@ -10,6 +10,7 @@ let
allApps = lib.unique (listNames ++ containerNames);
in {
config = lib.mkIf ( builtins.length allApps > 0) {
services.postgresql = {
enable = true;
ensureDatabases = map (name: "${name}_db") allApps;
@@ -32,4 +33,5 @@ in {
fi
'') allApps}
'';
};
}

View File

@@ -1,3 +1,3 @@
{ config, pkgs, lib, ... }:{
imports = [ ./sops ./nftables ./openssh ./containers ];
imports = [ ./containers ./database ./nftables ./openssh ./sops ];
}