mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
better services
This commit is contained in:
parent
29b35ab058
commit
518ab13797
10 changed files with 189 additions and 123 deletions
|
|
@ -1,9 +1,22 @@
|
|||
{ pkgs }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
}:
|
||||
let
|
||||
link = config.local.links.postgresql;
|
||||
in
|
||||
{
|
||||
local.links.postgresql.port = 5432;
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
dataDir = "/persist/services/postgresql";
|
||||
settings.unix_socket_permissions = "0770";
|
||||
settings = {
|
||||
inherit (link) port;
|
||||
listen_addresses = lib.mkForce link.ipv4;
|
||||
#unix_socket_directories = "";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue