From 9677ce5f19fb6b22411102c077da35be49a1e88e Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 22 Jan 2026 22:24:48 +0100 Subject: [PATCH 1/2] networking-toolbox: Init module --- .../web-services/networking-toolbox.nix | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/system/web-services/networking-toolbox.nix diff --git a/modules/system/web-services/networking-toolbox.nix b/modules/system/web-services/networking-toolbox.nix new file mode 100644 index 0000000..96a2e41 --- /dev/null +++ b/modules/system/web-services/networking-toolbox.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: +let + cfg = config.custom.web-services.networking-toolbox; +in +{ + options.custom.web-services.networking-toolbox = { + enable = lib.mkEnableOption ""; + domain = lib.mkOption { + type = lib.types.nonEmptyStr; + default = ""; + }; + port = lib.mkOption { + type = lib.types.port; + default = 4479; + }; + }; + + config = lib.mkIf cfg.enable { + virtualisation.oci-containers.containers.networking-toolbox = { + image = "lissy93/networking-toolbox"; + ports = [ "127.0.0.1:${toString cfg.port}:3000" ]; + pull = "newer"; + }; + + custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port; + }; +} From edfc766b46119d0630d5e5696ee54f18fadceb96 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 22 Jan 2026 22:25:11 +0100 Subject: [PATCH 2/2] vps-public: Enable networking-toolbox --- hosts/vps-public/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/vps-public/default.nix b/hosts/vps-public/default.nix index 2bc2917..2729404 100644 --- a/hosts/vps-public/default.nix +++ b/hosts/vps-public/default.nix @@ -71,7 +71,12 @@ it-tools = { enable = true; - domain = "tools.${sproutedDomain}"; + domain = "it-tools.${sproutedDomain}"; + }; + + networking-toolbox = { + enable = true; + domain = "net-tools.${sproutedDomain}"; }; privatebin = {