summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-12-06 16:34:53 +0100
committersils <sils@sils.li>2023-12-06 16:34:53 +0100
commit69bf17429a8e749c1126394e5bf82eeabf9df3b6 (patch)
treee75973b6a75a73f0ffcd9a4dba173232a87e4f3c /sys
parentfix(secrets/wireless): update (diff)
downloadnix-config-69bf17429a8e749c1126394e5bf82eeabf9df3b6.tar.gz
nix-config-69bf17429a8e749c1126394e5bf82eeabf9df3b6.zip
feat(sys/networking): add network
Diffstat (limited to 'sys')
-rw-r--r--sys/networking/default.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/networking/default.nix b/sys/networking/default.nix
index 1d55079..e1e6a14 100644
--- a/sys/networking/default.nix
+++ b/sys/networking/default.nix
@@ -1,4 +1,8 @@
-{config, ...}: {
+{
+  config,
+  self,
+  ...
+}: {
   networking = {
     useDHCP = true;
     #nameservers = ["2620:fe::fe" "2620:fe::9" "9.9.9.9" "149.112.112.112"];
@@ -11,6 +15,18 @@
         "@SSID_N1@".psk = "@PSK_N1@";
         "@SSID_N2@".psk = "@PSK_N2@";
         "@SSID_N3@".psk = "@PSK_N3@";
+        "@SSID_N4@" = {
+          auth = ''
+            proto=RSN
+            key_mgmt=WPA-EAP
+            pairwise=CCMP
+            auth_alg=OPEN
+            eap=PEAP
+            identity="@IDENTITY_N4@"
+            password="@PSK_N4@"
+            ca_cert="${self}/files/DNSX-CA.pem"
+          '';
+        };
       };
       userControlled = {
         enable = true;