diff --git a/flake.nix b/flake.nix index d932b0e..5a36a96 100644 --- a/flake.nix +++ b/flake.nix @@ -170,7 +170,7 @@ }; deploy.nodes.chrysalis = { - hostname = "192.168.2.31"; + hostname = "192.168.2.40"; sshUser = "root"; fastConnection = true; diff --git a/hosts/akko/default.nix b/hosts/akko/default.nix index a924ebb..9febd77 100644 --- a/hosts/akko/default.nix +++ b/hosts/akko/default.nix @@ -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 = { diff --git a/hosts/chrysalis/default.nix b/hosts/chrysalis/default.nix index 37a7b21..d092fe9 100644 --- a/hosts/chrysalis/default.nix +++ b/hosts/chrysalis/default.nix @@ -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;