From 86e7c9517990ea12d38d27fe3804f6beaaede089 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Wed, 12 Feb 2025 17:36:09 +0800 Subject: [PATCH] change networking of Tytonidae --- nixos/configurations/Tytonidae/networking.nix | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/nixos/configurations/Tytonidae/networking.nix b/nixos/configurations/Tytonidae/networking.nix index 0719d1b..0d96497 100644 --- a/nixos/configurations/Tytonidae/networking.nix +++ b/nixos/configurations/Tytonidae/networking.nix @@ -5,11 +5,25 @@ wait-online.enable = false; networks = { "eno2" = { + dns = [ + "192.168.31.1" + ]; + address = [ + "192.168.31.25/24" + ]; + gateway = [ + "192.168.31.1" + ]; + routes = [ + { + Gateway = "192.168.31.1"; + } + ]; matchConfig.Name = "eno2"; - networkConfig = { - DHCP = "yes"; - IPv6AcceptRA = true; - }; + # networkConfig = { + # DHCP = "no"; + # IPv6AcceptRA = true; + # }; }; }; };