diff --git a/home/adrielus/global/default.nix b/home/adrielus/global/default.nix index 8275d68..2cfad29 100644 --- a/home/adrielus/global/default.nix +++ b/home/adrielus/global/default.nix @@ -13,6 +13,7 @@ let # Extra overlays to add overlays = [ inputs.neovim-nightly-overlay.overlay + inputs.agenix.overlay ]; in { diff --git a/home/adrielus/tethys.nix b/home/adrielus/tethys.nix index 38b995e..0f5f48c 100644 --- a/home/adrielus/tethys.nix +++ b/home/adrielus/tethys.nix @@ -16,6 +16,7 @@ gimp # Image editing libreoffice # Free office suite lmms # music software + agenix # secret encryption # obs-studio # video recorder ]; diff --git a/hosts/nixos/common/global/wireless/default.nix b/hosts/nixos/common/global/wireless/default.nix index 2e3cfd7..e3f87fc 100644 --- a/hosts/nixos/common/global/wireless/default.nix +++ b/hosts/nixos/common/global/wireless/default.nix @@ -2,6 +2,7 @@ # Wireless secrets stored through agenix age.secrets.wireless.file = ./wifi_passwords.age; + # https://github.com/NixOS/nixpkgs/blob/nixos-22.11/nixos/modules/services/networking/wpa_supplicant.nix networking.wireless = { enable = true; fallbackToWPA2 = false; @@ -12,7 +13,23 @@ "Neptune".psk = "@PHONE_HOTSPOT_PASS@"; "TP-Link_522C".psk = "@TG_HOME_PASS@"; "Sailhorse".psk = "@NL_SAILHORSE_PASS@"; - "FOSDEM-Dualstack" = {}; + + "FOSDEM-Dualstack" = { }; + + # [Working solution](https://bbs.archlinux.org/viewtopic.php?id=271336) + # [Other interesting link](https://help.itc.rwth-aachen.de/en/service/b3d9a2c8ae5345b8b8f5128143ef4e3c/article/eaf6d69389a74a5a839c1f383c508df7/) + # [Uni link](https://lwpwiki.webhosting.rug.nl/index.php/Configure_your_wifi_for_Eduroam) + "eduroam" = { + authProtocols = [ "WPA-EAP" ]; + auth = '' + eap=PEAP + identity="s5260329@rug.nl" + password="@EDUROAM_PASS@" + ''; + extraConfig = '' + phase2="auth=MSCHAPV2" + ''; + }; }; # Imperative diff --git a/hosts/nixos/common/global/wireless/wifi_passwords.age b/hosts/nixos/common/global/wireless/wifi_passwords.age index 707ebe4..7147700 100644 Binary files a/hosts/nixos/common/global/wireless/wifi_passwords.age and b/hosts/nixos/common/global/wireless/wifi_passwords.age differ