fix networking config refering to wiki

This commit is contained in:
ulic-youthlic 2025-04-12 01:49:32 +08:00
parent 5b684020c1
commit 05beef2e59
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 18 additions and 5 deletions

View file

@ -25,9 +25,15 @@
wireless.iwd = {
enable = true;
settings = {
IPv6 = {
Enabled = true;
};
General = {
EnableNetworkConfiguration = true;
};
Settings = {
AutoConnect = true;
};
Network = {
EnableIPv6 = true;
NameResolvingService = "systemd";

View file

@ -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";