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 = { deploy.nodes.chrysalis = {
hostname = "192.168.2.31"; hostname = "192.168.2.40";
sshUser = "root"; sshUser = "root";
fastConnection = true; fastConnection = true;

View File

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

View File

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