Fix db
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{ config, pkgs, lib, ... }:{
|
||||
imports = [ ./sops ./nftables ./openssh ./containers ];
|
||||
imports = [ ./containers ./database ./nftables ./openssh ./sops ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user