From 05beef2e598d324159ee3a49ed0aebccfc2bbaab Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Sat, 12 Apr 2025 01:49:32 +0800 Subject: [PATCH] fix networking config refering to wiki --- nixos/configurations/Akun/networking.nix | 6 ++++++ nixos/configurations/Tytonidae/networking.nix | 17 ++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/nixos/configurations/Akun/networking.nix b/nixos/configurations/Akun/networking.nix index 2deca0b..4212114 100644 --- a/nixos/configurations/Akun/networking.nix +++ b/nixos/configurations/Akun/networking.nix @@ -25,9 +25,15 @@ wireless.iwd = { enable = true; settings = { + IPv6 = { + Enabled = true; + }; General = { EnableNetworkConfiguration = true; }; + Settings = { + AutoConnect = true; + }; Network = { EnableIPv6 = true; NameResolvingService = "systemd"; diff --git a/nixos/configurations/Tytonidae/networking.nix b/nixos/configurations/Tytonidae/networking.nix index 3da415a..56fcb1e 100644 --- a/nixos/configurations/Tytonidae/networking.nix +++ b/nixos/configurations/Tytonidae/networking.nix @@ -4,22 +4,23 @@ enable = true; wait-online.enable = false; networks = { - "eno2" = { + "10-eno2" = { dns = [ "192.168.31.1" ]; address = [ "192.168.31.25/24" ]; - gateway = [ - "192.168.31.1" - ]; + # gateway = [ + # "192.168.31.1" + # ]; routes = [ { Gateway = "192.168.31.1"; } ]; matchConfig.Name = "eno2"; + linkConfig.RequiredForOnline = "routable"; # networkConfig = { # DHCP = "yes"; # IPv6AcceptRA = true; @@ -30,7 +31,7 @@ networking = { networkmanager.enable = false; - useNetworkd = true; + # useNetworkd = true; useDHCP = false; nftables = { enable = true; @@ -39,9 +40,15 @@ wireless.iwd = { enable = true; settings = { + IPv6 = { + Enabled = true; + }; General = { EnableNetworkConfiguration = true; }; + Settings = { + AutoConnect = true; + }; Network = { EnableIPv6 = true; NameResolvingService = "systemd";