summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-11-26 12:47:39 +0100
committersils <sils@sils.li>2023-11-26 12:47:39 +0100
commit107f8b47121d9dc7b78a96f172158f9b6b51829d (patch)
tree65dd20014476450256ade6f75187686002970530 /sys
parentfeat(secrets/wireless): update (diff)
downloadnix-config-107f8b47121d9dc7b78a96f172158f9b6b51829d.tar.gz
nix-config-107f8b47121d9dc7b78a96f172158f9b6b51829d.zip
feat(sys/networking): declare networks with hidden ssids
Diffstat (limited to 'sys')
-rw-r--r--sys/networking/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/networking/default.nix b/sys/networking/default.nix
index 2d5a74b..3067fb6 100644
--- a/sys/networking/default.nix
+++ b/sys/networking/default.nix
@@ -5,7 +5,16 @@
     wireless = {
       enable = true;
       environmentFile = config.age.secrets.wireless.path;
-      networks = import ./networks.nix;
+      networks = {
+        # Important: Never forget the second '@'!
+        "@SSID_N0@".psk = "@PSK_N0@";
+        "@SSID_N1@".psk = "@PSK_N1@";
+        "@SSID_N2@".psk = "@PSK_N2@";
+      };
+      userControlled = {
+        enable = true;
+        group = "wheel"; # TODO: Change this?
+      };
     };
   };
 }