Files
nixos-blueprint/modules/nixos/system/wireless/wifi.nix
unexplrd b7f95a14c3 hosts/eldrid/users/user/home-configuration.nix: home-manager state follows system
modules/home/desktop/niri/default.nix: change evince to papers
modules/nixos/system/wireless/wifi.nix: simplify

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-28 16:39:21 +02:00

26 lines
493 B
Nix

{
lib,
config,
...
}:
with lib; let
cfg = config.wireless.wifi;
in {
options = {
wireless.wifi.enable =
mkEnableOption "enables wifi with iwd and MAC address randomisation";
};
config = mkIf cfg.enable {
networking = {
networkmanager.wifi.backend = "iwd";
wireless.iwd = {
enable = true;
settings = {
General.AddressRandomization = "network";
Settings.AlwaysRandomizeAddress = true;
};
};
};
};
}