From e924f789963af3f9e47437d45c9987fad64b39ef Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 14 Aug 2025 19:47:01 -0500 Subject: [PATCH] add stuff --- system-config/configuration/homebox/default.nix | 4 ++-- system-config/services/containers/gitea/default.nix | 6 +++++- system-config/services/containers/homeassistant/default.nix | 5 ++++- system-config/services/containers/n8n/default.nix | 6 +++++- system-config/services/containers/pihole/default.nix | 4 ++++ system-config/services/containers/sandbox/default.nix | 4 ++++ 6 files changed, 24 insertions(+), 5 deletions(-) diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index ba67a4c..9ba5b1c 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -99,7 +99,7 @@ nftables = {}; nat = { enable = true; - internalInterfaces = [ "ve-*" ]; + internalInterfaces = [ "ve-+" ]; externalInterface = "enp6s0"; }; }; @@ -193,7 +193,7 @@ git.enable = true; nh.enable = true; netbird.enable = true; - minecraft.enable = true; + minecraft.enable = false; steam.enable = false; virtualization = { traefik.enable = true; diff --git a/system-config/services/containers/gitea/default.nix b/system-config/services/containers/gitea/default.nix index 11637e0..2ee1198 100644 --- a/system-config/services/containers/gitea/default.nix +++ b/system-config/services/containers/gitea/default.nix @@ -7,7 +7,11 @@ config = lib.mkIf config.sysconfig.opts.virtualization.gitea.enable { - networking.hosts."192.168.100.20" = [ "gitea.blunkall.us" ]; + networking = { + hosts."192.168.100.20" = [ "gitea.blunkall.us" ]; + + nat.internalInterfaces = [ "ve-gitea" ]; + }; sops.secrets = { "gitea/dbpass" = {}; diff --git a/system-config/services/containers/homeassistant/default.nix b/system-config/services/containers/homeassistant/default.nix index 5cb7a1b..259c20b 100644 --- a/system-config/services/containers/homeassistant/default.nix +++ b/system-config/services/containers/homeassistant/default.nix @@ -13,8 +13,11 @@ config = lib.mkIf config.sysconfig.opts.virtualization.homeassistant.enable { - networking.hosts."192.168.100.25" = [ "hass.local" ]; + networking = { + networking.hosts."192.168.100.25" = [ "hass.local" ]; + nat.internalInterfaces = [ "ve-home-assistant" ]; + }; containers.home-assistant = { autoStart = true; diff --git a/system-config/services/containers/n8n/default.nix b/system-config/services/containers/n8n/default.nix index cab35ab..2bc5dc4 100644 --- a/system-config/services/containers/n8n/default.nix +++ b/system-config/services/containers/n8n/default.nix @@ -7,7 +7,11 @@ config = lib.mkIf config.sysconfig.opts.virtualization.n8n.enable { - networking.hosts."192.168.100.21" = [ "n8n.local" ]; + networking = { + hosts."192.168.100.21" = [ "n8n.local" ]; + + nat.internalInterfaces = [ "ve-n8n" ]; + }; containers.n8n = { diff --git a/system-config/services/containers/pihole/default.nix b/system-config/services/containers/pihole/default.nix index b3ca243..24cf794 100644 --- a/system-config/services/containers/pihole/default.nix +++ b/system-config/services/containers/pihole/default.nix @@ -18,6 +18,10 @@ }; */ + networking = { + + nat.internalInterfaces = [ "ve-pihole" ]; + }; containers.pihole = { autoStart = true; diff --git a/system-config/services/containers/sandbox/default.nix b/system-config/services/containers/sandbox/default.nix index df89b17..1a95e67 100644 --- a/system-config/services/containers/sandbox/default.nix +++ b/system-config/services/containers/sandbox/default.nix @@ -20,6 +20,10 @@ config = lib.mkIf config.sysconfig.opts.virtualization.sandbox.enable { + networking = { + + nat.internalInterfaces = [ "ve-sandbox" ]; + }; containers.sandbox = { autoStart = true;