Move postgres to shared module

This commit is contained in:
thiloho
2024-02-11 13:16:43 +01:00
parent 55fb35acf7
commit 652a5fa04f
3 changed files with 10 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
services = {
@@ -20,6 +20,15 @@
enable = true;
package = pkgs.mullvad-vpn;
};
postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "dcbot" "todos" ];
authentication = lib.mkForce ''
local all all trust
host all all ::1/128 trust
'';
};
};
networking.firewall = {