diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-01-18 13:54:02 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-01-18 13:54:02 -0800 |
| commit | 2befe0c818ad4df1529e55b34ef1bd2a51449db9 (patch) | |
| tree | 30d1a9125a14fca0d9fd69b6b3416a5dda0d44b4 /hosts/c-pc/network.nix | |
| parent | dacb3fa67081e4c0eade9cd4d99d729a9b3ea568 (diff) | |
flake: update
Diffstat (limited to 'hosts/c-pc/network.nix')
| -rw-r--r-- | hosts/c-pc/network.nix | 12 |
1 files changed, 7 insertions, 5 deletions
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"; + }; } |