Add internal IPv6 hosts, change postgresql listen addrs
Change-Id: If37d8d9e2f2f9d99aba69f3720b825f0dfd68b12
Reviewed-on: https://git.clicks.codes/c/Clicks/NixFiles/+/45
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/helpers b/helpers
index 9b2bb0d..8b911b9 160000
--- a/helpers
+++ b/helpers
@@ -1 +1 @@
-Subproject commit 9b2bb0dd0662e26ea5c9b7bcd2c767b50abc4525
+Subproject commit 8b911b96cd322f9a3741d382cca30894617e4dad
diff --git a/modules/common/networking.nix b/modules/common/networking.nix
index a19223c..1c8c029 100644
--- a/modules/common/networking.nix
+++ b/modules/common/networking.nix
@@ -3,11 +3,16 @@
[ 80 443 25 465 587 110 995 143 993 29418 ];
networking.hosts = {
+ # Internal IPv4
"127.0.0.1" = [ "standard" ];
"127.0.0.2" = [ "clicks" ];
"127.0.0.3" = [ "caramels" ];
"127.0.0.255" = [ "generic" ];
+ # Internal IPv6
+ "[::1]" = [ "standard" ];
+
+ # External
"192.168.0.4" = [ "CodedPi" ];
"192.168.0.5" = [ "SamuelDesktop" ];
"192.168.0.6" = [ "d2.a1.clicks" "a1d2.clicks" "a1d2" ];
diff --git a/modules/common/postgres.nix b/modules/common/postgres.nix
index c138511..f77346a 100644
--- a/modules/common/postgres.nix
+++ b/modules/common/postgres.nix
@@ -4,6 +4,7 @@
package = pkgs.postgresql;
settings = {
+ listen_addresses = lib.mkForce "standard";
log_connections = true;
logging_collector = true;
log_disconnections = true;