aboutsummaryrefslogtreecommitdiff
path: root/hosts/c-pc/network.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/c-pc/network.nix')
-rw-r--r--hosts/c-pc/network.nix12
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";
+ };
}