hosts/dandelion: add postgres, and lock to v13
This commit is contained in:
parent
30ba40e2ac
commit
211a9417f8
2 changed files with 4 additions and 1 deletions
|
|
@ -14,6 +14,8 @@
|
||||||
security
|
security
|
||||||
#wireguard
|
#wireguard
|
||||||
|
|
||||||
|
modules.services.postgres
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue