fix(hosts/wireless): disable wpa_supplicant hardening

The sandbox binds secretsFile into the unit's namespace, so a secret that
can't be decrypted kills the daemon along with the control socket needed to
connect by hand and fix it. It also breaks wpa_gui (nixpkgs#475438).

Tradeoff: the daemon runs as root again, as it does on most distros.

Assisted-by: pi (claude-opus-5)
This commit is contained in:
Gabriel Fontes
2026-08-13 16:36:09 -03:00
parent a587e539e9
commit fc9ab65dd1
+4
View File
@@ -8,6 +8,10 @@
networking.wireless = {
enable = true;
fallbackToWPA2 = false;
# The sandbox binds secretsFile into the unit's namespace, so a secret that
# can't be decrypted kills the daemon (and the control socket needed to
# connect by hand and fix it). Also breaks wpa_gui.
enableHardening = false;
# Declarative
secretsFile = config.sops.secrets.wireless.path;
networks = {