Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
54 lines
997 B
Nix
54 lines
997 B
Nix
{ config, ... }:
|
|
let
|
|
inherit (config.modules.other.system) username;
|
|
in
|
|
{
|
|
networking = {
|
|
enableIPv6 = true;
|
|
|
|
wireless = {
|
|
# INFO: This disables wpa_supplicant,
|
|
# I use iwd instead.
|
|
enable = false;
|
|
|
|
# use iwd over wpa_supplicant
|
|
iwd = {
|
|
enable = true;
|
|
settings = {
|
|
IPv6 = {
|
|
Enabled = true;
|
|
};
|
|
Settings = {
|
|
AutoConnect = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
dhcpcd = {
|
|
# faster boot times
|
|
wait = "background";
|
|
# do not edit resolv.conf
|
|
extraConfig = ''
|
|
nohook resolv.conf
|
|
'';
|
|
};
|
|
};
|
|
|
|
# service discovery on a local network via the mDNS/DNS-SD protocol suite
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
users.users.${username}.extraGroups = [ "networkmanager" ];
|
|
|
|
# faster boot
|
|
systemd = {
|
|
network = {
|
|
enable = true;
|
|
wait-online.enable = false;
|
|
};
|
|
};
|
|
}
|