diff --git a/modules/installer/tools/nixos-option.sh b/modules/installer/tools/nixos-option.sh index e5c681f1a4ab..bafce7d5690e 100644 --- a/modules/installer/tools/nixos-option.sh +++ b/modules/installer/tools/nixos-option.sh @@ -242,8 +242,7 @@ if $generate; then networking = { # hostName = "nixos"; # Define your hostname. - interfaceMonitor.enable = true; # Watch for plugged cable. - enableWLAN = true; # Enables Wireless. + wireless.enable = true; # Enables Wireless. }; # Add file system entries for each partition that you want to see mounted diff --git a/modules/profiles/installation-device.nix b/modules/profiles/installation-device.nix index 287b39ad7669..40daa10c8cee 100644 --- a/modules/profiles/installation-device.nix +++ b/modules/profiles/installation-device.nix @@ -155,7 +155,7 @@ in jobs.sshd.startOn = pkgs.lib.mkOverride 50 ""; # Enable wpa_supplicant, but don't start it by default. - networking.enableWLAN = true; + networking.wireless.enable = true; jobs.wpa_supplicant.startOn = pkgs.lib.mkOverride 50 ""; }; } diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index 9f6801e89cce..91ff1d594ba3 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -382,5 +382,5 @@ in services.mingetty.ttys = ttys ++ optional (!cfg.graphics) "ttyS0"; # Wireless won't work in the VM. - networking.enableWLAN = mkOverride 50 false; + networking.wireless.enable = mkOverride 50 false; }