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 ];
networking = {
hostName = "Rico1";
networkmanager = {
enable = true;
dns = "systemd-resolved";
wifi = {
backend = "iwd";
powersave = false;
};
};
useDHCP = lib.mkDefault false;
wireless.iwd = {
enable = true;
settings = {
General = {
AddressRandomization = "network";
EnableNetworkConfiguration = false;
};
Settings = {
AutoConnect = "yes";
};
};
};
};
services.resolved.enable = true;
systemd.network = {
enable = true;
networks = {
"40-ether" = {
enable = true;
matchConfig = {
Type = "ether";
};
networkConfig = {
DHCP = "yes";
IgnoreCarrierLoss = "3s";
};
dhcpV4Config = {
UseDomains = true;
};
ipv6AcceptRAConfig = {
UseDomains = true;
};
linkConfig = {
RequiredForOnline = "yes";
};
};
};
};
}

View file

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

View file

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