Fix WiFi for stinky.

This commit is contained in:
2025-10-29 15:04:59 +00:00
parent d123400ea9
commit d521c3b013
2 changed files with 5 additions and 8 deletions

View File

@@ -1,18 +1,15 @@
{ config, lib, ... }:
{
# WiFi configuration for NixOS hosts
# Import this module on hosts that should connect to WiFi
# Credentials stored in secrets/wifi.yaml (access controlled via .sops.yaml)
sops.secrets.wifi-password-pi = {
sopsFile = ./../secrets/wifi.yaml;
};
networking.wireless = {
enable = true;
secretsFile = config.sops.secrets.wifi-password-pi.path;
networks = {
"pi" = {
pskRaw = "ext:wifi-password-pi";
pskRaw = "ext:pi";
};
};
# Only enable on wireless interface, not ethernet