From 6e25003b5c1ae23b6998048cf08a2b8304fa3958 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 15 Jun 2023 22:02:30 +0100 Subject: [PATCH] fmt: removed some duplicates --- applications/gitlab.nix | 4 ---- applications/ldap.nix | 4 ---- applications/ulfm.nix | 2 -- machines/_base.nix | 6 ++++++ machines/agentjones.nix | 3 --- machines/galatea.nix | 4 ---- machines/glados.nix | 3 --- machines/kitt.nix | 5 ----- machines/optimus.nix | 2 -- machines/vendetta.nix | 4 ---- machines/vigil.nix | 2 +- 11 files changed, 7 insertions(+), 32 deletions(-) diff --git a/applications/gitlab.nix b/applications/gitlab.nix index 0e6ea4a..9de8732 100644 --- a/applications/gitlab.nix +++ b/applications/gitlab.nix @@ -99,11 +99,7 @@ ]; networking.firewall.allowedTCPPorts = [ - 80 - 443 - # for git - 22 2222 ]; diff --git a/applications/ldap.nix b/applications/ldap.nix index 4b35d7f..a7bf3bc 100644 --- a/applications/ldap.nix +++ b/applications/ldap.nix @@ -83,10 +83,6 @@ Gonna use a priper nixos module for this # firewall on teh computer itself networking.firewall.allowedTCPPorts = [ - 80 - 443 - - # for ldap 389 636 ]; diff --git a/applications/ulfm.nix b/applications/ulfm.nix index 6ec523d..cfc7cbc 100644 --- a/applications/ulfm.nix +++ b/applications/ulfm.nix @@ -47,8 +47,6 @@ age.secrets.ulfm.file = ../secrets/stream_ulfm.age; networking.firewall.allowedTCPPorts = [ - 80 - 443 8000 ]; diff --git a/machines/_base.nix b/machines/_base.nix index 4a7be77..4c1c738 100644 --- a/machines/_base.nix +++ b/machines/_base.nix @@ -4,6 +4,12 @@ imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") + # every sever may need the firewall config stuff + ../applications/firewall.nix + + # every sever needs to have a dns record + ../applications/dns.nix + # every server needs teh ldap client for admins ../applications/ldap_client.nix ]; diff --git a/machines/agentjones.nix b/machines/agentjones.nix index 68617e1..066008a 100644 --- a/machines/agentjones.nix +++ b/machines/agentjones.nix @@ -19,9 +19,6 @@ let in { imports = [ - # applications for this particular server - ../applications/firewall.nix - ../applications/dns.nix ./hardware/RM001.nix ]; diff --git a/machines/galatea.nix b/machines/galatea.nix index b488d61..a87c570 100644 --- a/machines/galatea.nix +++ b/machines/galatea.nix @@ -19,10 +19,6 @@ let hostname = "${name}.skynet.ie"; in { imports = [ - # general stuff for config - ../applications/dns.nix - - # specific to tis server ../applications/ulfm.nix ]; diff --git a/machines/glados.nix b/machines/glados.nix index bd47db8..c1fce22 100644 --- a/machines/glados.nix +++ b/machines/glados.nix @@ -21,9 +21,6 @@ let in { imports = [ - ../applications/dns.nix - - # applications for this particular server ../applications/gitlab.nix ]; diff --git a/machines/kitt.nix b/machines/kitt.nix index 399e71b..05f352b 100644 --- a/machines/kitt.nix +++ b/machines/kitt.nix @@ -21,11 +21,6 @@ let in { imports = [ - # required imports - ../applications/firewall.nix - ../applications/dns.nix - - # whats running on teh server ../applications/ldap.nix ]; diff --git a/machines/optimus.nix b/machines/optimus.nix index 124f8a2..bf0a372 100644 --- a/machines/optimus.nix +++ b/machines/optimus.nix @@ -20,8 +20,6 @@ let in { imports = [ - # applications for this particular server - ../applications/dns.nix ../applications/games.nix ]; diff --git a/machines/vendetta.nix b/machines/vendetta.nix index 3b3d459..7de619a 100644 --- a/machines/vendetta.nix +++ b/machines/vendetta.nix @@ -24,10 +24,6 @@ in { imports = [ # the physical hardware for this ./hardware/RM002.nix - - # applications for this particular server - ../applications/firewall.nix - ../applications/dns.nix ]; deployment = { diff --git a/machines/vigil.nix b/machines/vigil.nix index 295c733..f2ab9cf 100644 --- a/machines/vigil.nix +++ b/machines/vigil.nix @@ -21,7 +21,7 @@ let ns = "ns2"; in { imports = [ - ../applications/dns.nix + ]; deployment = {