From 7adc6cf092ef30a85a825b13e6281b45a35f88b9 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 28 Feb 2023 13:11:37 +0100 Subject: [PATCH] Installed agenix + working eduroam connection --- home/adrielus/global/default.nix | 1 + home/adrielus/tethys.nix | 1 + .../nixos/common/global/wireless/default.nix | 19 +++++++++++++++++- .../common/global/wireless/wifi_passwords.age | Bin 564 -> 512 bytes 4 files changed, 20 insertions(+), 1 deletion(-) 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 707ebe4c4e81e46f1467ff3165aaf3cae865880b..71477009031f4269ff73661a33b717f832256f37 100644 GIT binary patch delta 478 zcmV<40U`dh1b_sPEPq8pcR_PGYHd|%OLJmnRCZc6bZB`}Rx4<8N=a)gYb7de}PHZ7yHy~qBS6xk9AURNML<%x+c2r1ZLrP6$ zQ!7tQVQFVMc7JAWMOaT|P)s*OGfgsDMr?3xK?*G`Eg()XbuVv0Qe#VLLrrTqYGq?< zOju%dHf>i*Ni=tBPjE42bVorqLwa*&MG6^O3!*~&&0FgyyHyR^@|+sXgtEJE?tJ(} z651u;@zrsDBpvFqcDfjoW}~`RtxM)UEG1i4^vNBwxmSmdkmh}qMz;W!FepsA+j^JU z2$&z1%4d#|!58LgC=?Z+?2_Y= z#~KQud1Ho$)KoV0TB0CGL6Xf6^?{C!6eNcra9jxhR5OTnP!y*ANX@1LsM)3`+i6#H zY^Cm7SnNUsp>7Ns1W6|7h-h3{MiZsyr=+<%%Zu+IC+y z&7^F=o`qGT6MI5|bb}$plFkcNVYN(}TuT_ZMLAlwIxJeM%9Z@xY>TsraU;oAo**M6PZS-bK4z{@Az-(B|0o^t2x zdw26ivv}*>K{sG