summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-11-19 22:54:19 +0100
committersils <sils@sils.li>2023-11-19 22:54:19 +0100
commit0382d371c2998756326278c719a0d928209e1480 (patch)
treee942be0ff818105cc3a53c4fa269b4ae48cde03a /sys
parentfeat(flake): add (r)agenix (diff)
downloadnix-config-0382d371c2998756326278c719a0d928209e1480.tar.gz
nix-config-0382d371c2998756326278c719a0d928209e1480.zip
feat(treewide): use agenix for wifi-passwords
Diffstat (limited to 'sys')
-rw-r--r--sys/networking/default.nix3
-rw-r--r--sys/networking/networks.nixbin85 -> 128 bytes
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/networking/default.nix b/sys/networking/default.nix
index c630249..2d5a74b 100644
--- a/sys/networking/default.nix
+++ b/sys/networking/default.nix
@@ -1,9 +1,10 @@
-{...}: {
+{config, ...}: {
   networking = {
     useDHCP = true;
     #nameservers = ["2620:fe::fe" "2620:fe::9" "9.9.9.9" "149.112.112.112"];
     wireless = {
       enable = true;
+      environmentFile = config.age.secrets.wireless.path;
       networks = import ./networks.nix;
     };
   };
diff --git a/sys/networking/networks.nix b/sys/networking/networks.nix
index 8f3130d..fdb2d1b 100644
--- a/sys/networking/networks.nix
+++ b/sys/networking/networks.nix
Binary files differ