feat: massive refactoring...
This commit is contained in:
18
config/db-postgres.nix
Normal file
18
config/db-postgres.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
tools,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
package = pkgs.postgresql_18;
|
||||
authentication = ''
|
||||
host all all ${tools.mask_cidr} md5
|
||||
'';
|
||||
checkConfig = true;
|
||||
initialScript = config.age.secrets.db-postgres-initscript.path;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user