diff options
| author | tv <tv@krebsco.de> | 2026-11-28 17:19:31 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-28 17:19:31 +0000 |
| commit | a4de31a38f4cc219e1d5890cdd567490fa9967eb (patch) | |
| tree | 658e3b15a519f6305de4a27feebc10344c9bd30f | |
| parent | 28fb49772d59cef48328e9ed92a61539af803603 (diff) | |
qi: load the regulatory database once the root is there
cfg80211 is built in, looks for regulatory.db at boot, finds none and
stays with the world domain, whatever country gets set later.
| -rw-r--r-- | systems/qi/base.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/systems/qi/base.nix b/systems/qi/base.nix index db34cad1..73f17b4c 100644 --- a/systems/qi/base.nix +++ b/systems/qi/base.nix @@ -51,6 +51,16 @@ "wireless.secrets:${config.krebs.secret.directory}/wireless.secrets" ]; + # The kernel looks for regulatory.db before the root is mounted. + systemd.services.regulatory-db = { + before = [ "wpa_supplicant.service" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.iw}/bin/iw reg reload"; + }; + }; + zramSwap.enable = true; environment.systemPackages = [ |
