enable postgres configs

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Cadey Ratio 2023-06-20 11:08:09 -04:00
parent 05c345c09e
commit ae7c1d4c95
3 changed files with 18 additions and 9 deletions

View File

@ -170,7 +170,7 @@
};
deploy.nodes.chrysalis = {
hostname = "192.168.2.31";
hostname = "192.168.2.40";
sshUser = "root";
fastConnection = true;

View File

@ -20,6 +20,13 @@
services.tailscale.enable = true;
services.postgresql = {
authentication = ''
host replication replication 100.64.0.0/10 md5
'';
enableTCPIP = true;
};
security.acme.acceptTerms = true;
services.nginx = {

View File

@ -1,12 +1,8 @@
{ lib, config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./prometheus.nix
./solanum.nix
./znc.nix
];
imports =
[ ./hardware-configuration.nix ./prometheus.nix ./solanum.nix ./znc.nix ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -36,8 +32,14 @@
services.tailscale.enable = true;
services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql_15;
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
enableTCPIP = true;
authentication = ''
host marabot all 100.64.0.0/10 md5
'';
};
services.avahi = {
enable = true;