From 2b38c0ecdcc378f6fee2b070f9cbed1dd0e5eab2 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 26 Jan 2026 17:57:50 -0500 Subject: [PATCH] yarn: set static ip --- system/system-yarn.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 ];