From eda60fb70a5e61ccb42d98f48167069f20f7dd41 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Mon, 15 Nov 2021 22:58:52 -0500 Subject: [PATCH] Wifi is now working. Wooh --- nixos/configuration.nix | 10 +++++++--- nixos/hardware-configuration.nix | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 72ab12b..aa12099 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -20,10 +20,14 @@ # head -c4 /dev/urandom | od -A none -t x4 networking.hostId = "a7a1c3f5"; networking.hostName = "nil"; # Define your hostname. - networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + networking.wireless = { + enable = true; # Enables wireless support via wpa_supplicant. + interfaces = ["wlp3s0"]; # Enables wireless support via wpa_supplicant. + userControlled.enable = true; + }; # Set your time zone. - time.timeZone = "America/NewYork"; + time.timeZone = "America/New_York"; # The global useDHCP flag is deprecated, therefore explicitly set to false here. # Per-interface useDHCP will be mandatory in the future, so this generated config @@ -31,6 +35,7 @@ networking.useDHCP = false; networking.interfaces.enp2s0f0.useDHCP = true; networking.interfaces.enp5s0.useDHCP = true; + networking.interfaces.wlp3s0.useDHCP = true; # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; @@ -105,4 +110,3 @@ system.stateVersion = "21.05"; # Did you read the comment? } - diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index 1883953..6206f2b 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -20,7 +20,6 @@ ]; # Wifi support - boot.extraModulePackages = [ config.boot.kernelPackages.rtw89 ]; hardware.firmware = [ pkgs.rtw89-firmware ]; # For support of newer AMD GPUs, backlight and internal microphone @@ -28,7 +27,7 @@ boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.extraModulePackages = [ config.boot.kernelPackages.rtw89 ]; boot.supportedFilesystems = ["zfs"]; boot.initrd.luks.devices."crypt" =