hosts/dandelion: add postgres, and lock to v13

This commit is contained in:
LavaDesu 2024-07-07 12:38:23 +10:00
parent 30ba40e2ac
commit 211a9417f8
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
dir = "/persist/postgresql/${config.services.postgresql.package.psqlSchema}";
uid = toString config.ids.uids.postgres;
@ -8,6 +8,7 @@ in {
services.postgresql = {
enable = true;
dataDir = dir;
package = pkgs.postgresql_13;
authentication = lib.mkOverride 10 ''
#type database DBuser origin-address auth-method
local all all trust