summaryrefslogtreecommitdiff
path: root/hostnix/creep/configuration.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-03-20 16:37:55 +1100
committerJoe Mou <dev@mou.fo>2024-03-20 16:37:55 +1100
commita327edf7ae566b10a6136bb4f679fcdec1ac97e1 (patch)
tree15bf172c3236a56827ff60a3e2cbbd1e516000e2 /hostnix/creep/configuration.nix
parent41543bbe9605596d62fb8c54f08671198fde88ff (diff)
creep: configure WiFi AP that tunnels over VPN
Diffstat (limited to 'hostnix/creep/configuration.nix')
-rw-r--r--hostnix/creep/configuration.nix14
1 files changed, 9 insertions, 5 deletions
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
'';
};