port var
This commit is contained in:
parent
22ab6fa3de
commit
bb0fa37756
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue