From a4de31a38f4cc219e1d5890cdd567490fa9967eb Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 28 Nov 2026 17:19:31 +0000 Subject: 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. --- systems/qi/base.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'systems') 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 = [ -- cgit v1.3.1