modules/home/desktop/niri/default.nix: change evince to papers modules/nixos/system/wireless/wifi.nix: simplify Signed-off-by: unexplrd <unexplrd@linerds.us>
26 lines
493 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|