VEGAS: add database

This commit is contained in:
Max Headroom 2021-10-16 22:24:00 +02:00
parent 6729a1f338
commit 2514d708cd
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{ lib, pkgs, ... }:
{
services.postgresql = {
enable = true;
enableTCPIP = true;
checkConfig = true;
package = pkgs.postgresql_12;
dataDir = "/srv/storage/database/postgres-12/data";
authentication = lib.mkForce ''
local all all trust
host all all 127.0.0.1/32 trust
'';
};
}

View file

@ -5,6 +5,9 @@
[
# Hardware
./hardware-configuration.nix
# Plumbing
./modules/database
]
# TODO: fix users
# ++ (import ../../users "server").groups.admin