hosts/dandelion: add postgres, and lock to v13

This commit is contained in:
LavaDesu 2024-07-07 12:38:23 +10:00
parent b3a285c3d5
commit 2da3206a93
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,8 @@
security security
#wireguard #wireguard
modules.services.postgres
./filesystem.nix ./filesystem.nix
./kernel.nix ./kernel.nix
./networking.nix ./networking.nix

View file

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