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; } ];