diff --git a/system/system-yarn.nix b/system/system-yarn.nix index 5c6f1ff..a00939e 100644 --- a/system/system-yarn.nix +++ b/system/system-yarn.nix @@ -33,6 +33,22 @@ networking.hostId = "abf570f9"; + # Static IP for consistent SSH access + networking.networkmanager.ensureProfiles.profiles.enp7s0-static = { + connection = { + id = "enp7s0-static"; + type = "ethernet"; + interface-name = "enp7s0"; + autoconnect = true; + }; + ipv4 = { + method = "manual"; + address1 = "192.168.1.223/24,192.168.1.1"; + dns = "1.1.1.1;9.9.9.9;"; + }; + ipv6.method = "disabled"; + }; + services.openssh = { enable = true; ports = [ 22 ];