{ config, lib, ... }: let inherit (lib) mkEnableOption mkIf; cfg = config.unexplrd.networking.iwd; in { options.unexplrd.networking.iwd.enable = mkEnableOption "iwd as the NetworkManager Wi-Fi backend"; config = mkIf cfg.enable { networking = { networkmanager.wifi.backend = "iwd"; wireless.iwd.enable = true; }; }; }