35 lines
840 B
Nix
35 lines
840 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Keep NetworkManager off (avoids nm-applet + keyring + agent ecosystem)
|
|
networking.networkmanager.enable = false;
|
|
|
|
# iwd provides Wi-Fi auth/roaming; configurable via networking.wireless.iwd.settings
|
|
networking.wireless.iwd = {
|
|
enable = true;
|
|
|
|
# Optional but useful defaults
|
|
settings = {
|
|
Settings = {
|
|
AutoConnect = true;
|
|
};
|
|
Network = {
|
|
EnableIPv6 = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
# GUI (with tray indicator via `iwgtk -i`)
|
|
environment.systemPackages = with pkgs; [
|
|
iwd
|
|
iwgtk
|
|
];
|
|
|
|
# Allow non-root Wi-Fi control (common pattern for iwd tooling)
|
|
users.users.henrov.extraGroups = [ "netdev" ];
|
|
|
|
# Ensure you still get IP addresses (default on NixOS is usually OK,
|
|
# but this makes it explicit)
|
|
networking.useDHCP = lib.mkDefault true;
|
|
}
|