From 3ccc68f167184a093c79cab4ff8e25b37206a20c Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 19 Oct 2025 13:30:52 +0200 Subject: Add agenix --- router.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'router.nix') 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; -- cgit v1.2.3