From ac6f4b4fcd11366ed664450ef658779371996214 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 5 Aug 2025 21:47:13 +0200 Subject: [PATCH] feat: add static ip for 40gbit nic --- hosts/yoshino/default.nix | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/hosts/yoshino/default.nix b/hosts/yoshino/default.nix index f61d5b5..da4ee92 100644 --- a/hosts/yoshino/default.nix +++ b/hosts/yoshino/default.nix @@ -20,6 +20,24 @@ cpuFreqGovernor = lib.mkDefault "performance"; }; + networking = { + hostName = "yoshino"; + networkmanager.enable = true; + }; + + systemd.network.networks."99-local" = { + matchConfig.name = "enp68s0"; + address = [ + "192.168.1.100/24" + ]; + routes = [ + { + Gateway = "172.16.10.1"; + GatewayOnLink = false; + } + ]; + }; + liv = { desktop.enable = true; creative.enable = true; @@ -28,11 +46,6 @@ gui.enable = true; }; - networking = { - hostName = "yoshino"; - networkmanager.enable = true; - }; - boot = { kernelParams = [ ]; kernelModules = [ "acpi_call" ];