From 7cd946571b78fcc92c9cbe0ac1c108f0bace361a Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 23 Jul 2025 22:24:52 -0500 Subject: [PATCH] debug --- .../configuration/homebox/default.nix | 2 +- .../services/containers/netbird/default.nix | 68 +++++++++++++++++-- system-config/services/minecraft/default.nix | 2 +- 3 files changed, 63 insertions(+), 9 deletions(-) diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index ecc07d0..322ba64 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -267,7 +267,7 @@ gitea.enable = true; homeassistant.enable = false; ntfy.enable = false; - netbird.enable = true; + netbird.enable = false; rustdesk.enable = false; #broken }; }; diff --git a/system-config/services/containers/netbird/default.nix b/system-config/services/containers/netbird/default.nix index 6a0a2ff..c6b46a8 100644 --- a/system-config/services/containers/netbird/default.nix +++ b/system-config/services/containers/netbird/default.nix @@ -21,16 +21,70 @@ enable = config.sysconfig.opts.netbird.enable; }; - systemd.services.launchNetbird = lib.mkIf config.sysconfig.opts.virtualization.netbird.enable { + containers.netbird = lib.mkIf config.sysconfig.opts.virtualization.netbird.enable { - enable = false; + autoStart = true; + privateNetwork = true; + hostAddress = "192.168.100.10"; + localAddress = "192.168.100.21"; - wantedBy = [ "multi-user.target" ]; + forwardPorts = [ + + ]; - script = '' - cd /ssd1/Netbird - ${pkgs.docker-compose}/bin/docker-compose up - ''; + bindMounts = { + + }; + + + config = { + + services.netbird = { + server = { + enable = true; + enableNginx = false; + domain = "vpn.blunkall.us"; + + management = { + enable = true; + + disableAnonymousMetrics = true; + + dnsDomain = "vpn"; + + oidcConfigEndpoint = "https://auth.blunkall.us/application/o/netbird/.well-known/openid-configuration"; + + settings = {}; + }; + + dashboard = { + enable = true; + + settings = { + AUTH_AUTHORITY = "https://auth.blunkall.us/application/o/netbird/.well-known/openid-configuration"; + }; + }; + + coturn = { + enable = true; + + password = "password"; + }; + + signal = { + enable = true; + }; + }; + }; + + networking.firewall = { + allowedTCPPorts = [ 80 443 33073 33080 10000 ]; + allowedUDPPorts = [ 3478 ]; + allowedUDPPortRanges = [{ from = 49152; to = 54152; }]; + }; + + system.stateVersion = "25.05"; + }; }; }; diff --git a/system-config/services/minecraft/default.nix b/system-config/services/minecraft/default.nix index 024ade5..e18548d 100644 --- a/system-config/services/minecraft/default.nix +++ b/system-config/services/minecraft/default.nix @@ -20,7 +20,7 @@ openFirewall = true; dataDir = "/var/lib/mcservers"; - #managementSystem.systemd-socket.enable = true; #temp + managementSystem.systemd-socket.enable = true; #temp servers = {