VEGAS: add database
This commit is contained in:
parent
6729a1f338
commit
2514d708cd
2 changed files with 17 additions and 0 deletions
14
hosts/VEGAS/modules/database/default.nix
Normal file
14
hosts/VEGAS/modules/database/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,6 +5,9 @@
|
||||||
[
|
[
|
||||||
# Hardware
|
# Hardware
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# Plumbing
|
||||||
|
./modules/database
|
||||||
]
|
]
|
||||||
# TODO: fix users
|
# TODO: fix users
|
||||||
# ++ (import ../../users "server").groups.admin
|
# ++ (import ../../users "server").groups.admin
|
||||||
|
|
Loading…
Reference in a new issue