From a327edf7ae566b10a6136bb4f679fcdec1ac97e1 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 20 Mar 2024 16:37:55 +1100 Subject: creep: configure WiFi AP that tunnels over VPN --- hostnix/creep/configuration.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'hostnix/creep/configuration.nix') diff --git a/hostnix/creep/configuration.nix b/hostnix/creep/configuration.nix index 86100af..67f7732 100644 --- a/hostnix/creep/configuration.nix +++ b/hostnix/creep/configuration.nix @@ -3,6 +3,7 @@ { imports = [ ./hardware-configuration.nix + ./wifi-vpn.nix ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -20,10 +21,13 @@ networking.hostName = "creep"; networking.domain = "mou.fo"; - networking.wireless.enable = true; - networking.wireless.networks = { - "Girls Gone Wireless".psk = "Paddlepops103!"; - "Cali's internet".psk = "calibanthetempest2019"; + networking.wireless = { + enable = true; + interfaces = [ "wlan0" ]; + networks = { + "Girls Gone Wireless".psk = "Paddlepops103!"; + "Cali's internet".psk = "calibanthetempest2019"; + }; }; time.timeZone = "Australia/Sydney"; @@ -64,7 +68,7 @@ -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes \ -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ -i /etc/ssh/ssh_host_ed25519_key \ - -N -R 19422:localhost:22 joe@popfresh.mou.fo + -q -N -R 19422:localhost:22 joe@creepgw.mou.fo ''; }; -- cgit v1.3.1