switch to networkmanager

This commit is contained in:
Adithya 2023-09-23 13:18:33 +05:30
parent 23b07837eb
commit 3d14c0bb59
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 9 additions and 40 deletions

View file

@ -1,6 +1,14 @@
{lib, ...}: {
networking = {
hostName = "Skipper";
networkmanager = {
enable = true;
dns = "systemd-resolved";
wifi = {
backend = "iwd";
powersave = false;
};
};
useDHCP = lib.mkDefault false;
wireless.iwd = {
enable = true;
@ -17,44 +25,4 @@
};
services.resolved.enable = true;
systemd.network = {
enable = true;
networks = {
"41-ether" = {
enable = true;
matchConfig = {
Type = "ether";
};
networkConfig = {
DHCP = "yes";
};
dhcpV4Config = {
UseDomains = true;
};
ipv6AcceptRAConfig = {
UseDomains = true;
};
};
"40-wireless" = {
enable = true;
matchConfig = {
Type = "wlan";
};
networkConfig = {
DHCP = "yes";
IgnoreCarrierLoss = "3s";
};
dhcpV4Config = {
UseDomains = true;
};
ipv6AcceptRAConfig = {
UseDomains = true;
};
linkConfig = {
RequiredForOnline = "yes";
};
};
};
};
}

View file

@ -14,6 +14,7 @@ _: {
"/var/lib/iwd"
"/var/lib/libvirt"
"/var/lib/machines"
"/var/lib/NetworkManager"
"/var/lib/nixos"
"/var/lib/portables"
"/var/lib/systemd"