refactor(greatyamada): Change port definitions format
This commit is contained in:
parent
f71272abe5
commit
0e6432592d
12 changed files with 64 additions and 60 deletions
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
let portDefinitions = import ./_port-definitions.nix;
|
||||
let ports = import ./_port-definitions.nix;
|
||||
in {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
@ -7,7 +7,7 @@ in {
|
|||
enableTCPIP = true;
|
||||
dataDir =
|
||||
"/mnt/ssd-01/postgresql/${config.services.postgresql.package.psqlSchema}";
|
||||
settings.port = portDefinitions.postgresql;
|
||||
settings.port = ports.tcp.postgresql;
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 trust
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue