From bb0fa3775688265a0600d23793ac6d8c731f6144 Mon Sep 17 00:00:00 2001 From: Sveske-Juice Date: Tue, 27 May 2025 13:59:53 +0200 Subject: [PATCH] port var --- configuration.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index bdeba3f..717f1e5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,6 @@ -{pkgs, ...}: { +{pkgs, ...}: let + haport = 8123; +in { system.stateVersion = "24.05"; users.groups.admin = {}; users.users = { @@ -14,7 +16,7 @@ settings.PasswordAuthentication = true; }; - networking.firewall.allowedTCPPorts = [22 8123]; + networking.firewall.allowedTCPPorts = [22 haport]; environment.systemPackages = with pkgs; [ htop ]; @@ -34,7 +36,7 @@ # HA { from = "host"; - host.port = 8123; + host.port = haport; guest.port = 8123; } ];