From ef304508922c4d431a2e9dcd0d93bfa575335c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Fri, 15 Mar 2024 14:00:06 +0100 Subject: [PATCH] 232 current 1970-01-01 01:00:00 24.05.20240312.0ad13a6 6.6.21 * --- modules/home-manager/sway.nix | 1 - modules/nixos/wifi.nix | 37 +++-------------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index ac4f553..5cf79ca 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -194,7 +194,6 @@ in { {command = "${pkgs.keepassxc}/bin/keepassxc";} {command = "${pkgs.waybar}/bin/waybar";} {command = "${pkgs.foot}/bin/foot -a foot-startup";} - {command = "${pkgs.wpa_supplicant_gui}/bin/wpa_gui -t";} ]; defaultWorkspace = "main"; diff --git a/modules/nixos/wifi.nix b/modules/nixos/wifi.nix index f589765..eb8a0fd 100644 --- a/modules/nixos/wifi.nix +++ b/modules/nixos/wifi.nix @@ -7,43 +7,12 @@ sopsFile = ../../secrets/wifi.yaml; }; sops.age.keyFile = /home/max/.config/sops/age/keys.txt; - networking.wireless = { + networking.networkmanager = { enable = true; - userControlled.enable = true; - environmentFile = config.sops.secrets."wireless.env".path; - networks = { - "@home_uuid@" = { - psk = "@home_psk@"; - priority = 10; - }; - "@par_uuid@" = { - psk = "@par_psk@"; - priority = 10; - }; - "@luhbots_uuid@" = { - psk = "@luhbots_psk@"; - priority = 5; - }; - eduroam = { - auth = '' - key_mgmt=WPA-EAP - proto=RSN - pairwise=CCMP - group=CCMP - eap=TTLS - phase2="auth=MSCHAPV2" - anonymous_identity="anonymous@uni-hannover.de" - identity="@eduroam_ident@" - password="@eduroam_psk@" - ca_cert="/etc/ssl/certs/T-TeleSec_GlobalRoot_Class_2.crt" - ''; - priority = 0; - }; - }; + wifi.backend = "wpa_supplicant"; }; - users.extraUsers.max.extraGroups = ["wheel"]; environment.systemPackages = with pkgs; [ - wpa_supplicant_gui + nm-tray ]; }