From 2befe0c818ad4df1529e55b34ef1bd2a51449db9 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 18 Jan 2025 13:54:02 -0800 Subject: flake: update --- hosts/c-pc/network.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'hosts/c-pc/network.nix') diff --git a/hosts/c-pc/network.nix b/hosts/c-pc/network.nix index c2b5365..969b49f 100644 --- a/hosts/c-pc/network.nix +++ b/hosts/c-pc/network.nix @@ -9,11 +9,9 @@ wireless = { enable = true; - - environmentFile = "/secrets/wireless.env"; - networks = { - "@SSID@".psk = "@PSK@"; - }; + + # Import /etc/wpa_supplicant.conf networks + allowAuxiliaryImperativeNetworks = true; }; firewall = { @@ -23,4 +21,8 @@ allowedUDPPorts = [ ]; }; }; + + environment.etc."wpa_supplicant.conf" = { + source = "/secrets/wireless.conf"; + }; } -- cgit v1.2.3