hosts/ni: move wireless configuration to appropriate file

This commit is contained in:
Gabriel Arazas 2023-03-10 08:28:33 +08:00
parent d227116561
commit d4395da314
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 20 additions and 20 deletions

View File

@ -12,6 +12,26 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# The simpler WiFi manager.
networking.wireless.iwd = {
enable = true;
settings = {
General = {
EnableNetworkConfiguration = true;
UseDefaultInterface = true;
ControlPortOverNL80211 = true;
};
Network = {
AutoConnect = true;
NameResolvingService = "systemd";
};
};
};
# Set the NetworkManager backend to iwd for workflows that use it.
network.networkmanager.wifi.backend = "iwd";
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot = {
enable = true;

View File

@ -10,26 +10,6 @@
interfaces.enp1s0.useDHCP = true;
interfaces.wlp2s0.useDHCP = true;
# The simpler WiFi manager.
wireless.iwd = {
enable = true;
settings = {
General = {
EnableNetworkConfiguration = true;
UseDefaultInterface = true;
ControlPortOverNL80211 = true;
};
Network = {
AutoConnect = true;
NameResolvingService = "systemd";
};
};
};
# Set the NetworkManager backend to iwd for workflows that use it.
networkmanager.wifi.backend = "iwd";
bonds.bond0 = {
driverOptions = {
miimon = "100";