From d925e7a6f8d0af246fd8ad7e253c510bdf3c8eb5 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 25 Dec 2024 21:07:51 +0000 Subject: omar: Add wpa networking config --- hosts/omar/wireless-networking/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hosts/omar/wireless-networking/default.nix (limited to 'hosts/omar/wireless-networking') diff --git a/hosts/omar/wireless-networking/default.nix b/hosts/omar/wireless-networking/default.nix new file mode 100644 index 0000000..78a9d3e --- /dev/null +++ b/hosts/omar/wireless-networking/default.nix @@ -0,0 +1,19 @@ +# This module configures wireless networking using WPA. + +{...}: + +{ + # Enables wireless support via wpa_supplicant. + networking.wireless.enable = true; + + # wpa_supplicant needs a configuration file. That file contains plaintext + # passwords and should NOT be added to the configuration. Instead, let's + # store it persistently. + # + # I created that file with the following commands: + # mkdir -p /persist/etc/ + # echo '# Allow frontend (e.g. wpa_cli) to be used by all users in 'wheel' group. + # ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel' >/persist/etc/wpa_supplicant.conf + # And then I added the network={} blocks for the networks I know. + environment.etc."wpa_supplicant.conf".source = "/persist/etc/wpa_supplicant.conf"; +} -- cgit v1.2.3