summaryrefslogtreecommitdiff
path: root/router.nix
diff options
context:
space:
mode:
Diffstat (limited to 'router.nix')
-rw-r--r--router.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/router.nix b/router.nix
index b377e57..0429dfa 100644
--- a/router.nix
+++ b/router.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ config, ... }:
let
lanInterface = "enp5s0f0u2";
wifiInterface = "wlp9s0";
@@ -36,12 +36,13 @@ in
authentication = {
mode = "wpa3-sae";
saePasswords = [
- { password = "REDACTED"; }
+ { passwordFile = config.age.secrets."wifi-password.txt".path; }
];
};
};
};
};
+ age.secrets."wifi-password.txt".file = ./secrets/wifi-password.txt.age;
services.dnsmasq = {
enable = true;