switch to network-manager on rico1 and rico2

This commit is contained in:
Adithya 2023-11-11 23:59:42 +05:30
parent 9ca43689f0
commit e34a85b940
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 43 additions and 44 deletions

View file

@ -2,33 +2,31 @@
imports = [ ./wireguard.nix ]; imports = [ ./wireguard.nix ];
networking = { networking = {
hostName = "Rico1"; hostName = "Rico1";
networkmanager = {
enable = true;
dns = "systemd-resolved";
wifi = {
backend = "iwd";
powersave = false;
};
};
useDHCP = lib.mkDefault false; useDHCP = lib.mkDefault false;
};
services.resolved.enable = true; wireless.iwd = {
enable = true;
systemd.network = { settings = {
enable = true; General = {
networks = { AddressRandomization = "network";
"40-ether" = { EnableNetworkConfiguration = false;
enable = true;
matchConfig = {
Type = "ether";
}; };
networkConfig = { Settings = {
DHCP = "yes"; AutoConnect = "yes";
IgnoreCarrierLoss = "3s";
};
dhcpV4Config = {
UseDomains = true;
};
ipv6AcceptRAConfig = {
UseDomains = true;
};
linkConfig = {
RequiredForOnline = "yes";
}; };
}; };
}; };
}; };
services.resolved.enable = true;
} }

View file

@ -2,33 +2,31 @@
imports = [ ./wireguard.nix ]; imports = [ ./wireguard.nix ];
networking = { networking = {
hostName = "Rico2"; hostName = "Rico2";
networkmanager = {
enable = true;
dns = "systemd-resolved";
wifi = {
backend = "iwd";
powersave = false;
};
};
useDHCP = lib.mkDefault false; useDHCP = lib.mkDefault false;
};
services.resolved.enable = true; wireless.iwd = {
enable = true;
systemd.network = { settings = {
enable = true; General = {
networks = { AddressRandomization = "network";
"40-ether" = { EnableNetworkConfiguration = false;
enable = true;
matchConfig = {
Type = "ether";
}; };
networkConfig = { Settings = {
DHCP = "yes"; AutoConnect = "yes";
IgnoreCarrierLoss = "3s";
};
dhcpV4Config = {
UseDomains = true;
};
ipv6AcceptRAConfig = {
UseDomains = true;
};
linkConfig = {
RequiredForOnline = "yes";
}; };
}; };
}; };
}; };
services.resolved.enable = true;
} }

View file

@ -2,6 +2,7 @@
imports = [ ./wireguard.nix ]; imports = [ ./wireguard.nix ];
networking = { networking = {
hostName = "Skipper"; hostName = "Skipper";
networkmanager = { networkmanager = {
enable = true; enable = true;
dns = "systemd-resolved"; dns = "systemd-resolved";
@ -10,7 +11,9 @@
powersave = false; powersave = false;
}; };
}; };
useDHCP = lib.mkDefault false; useDHCP = lib.mkDefault false;
wireless.iwd = { wireless.iwd = {
enable = true; enable = true;
settings = { settings = {