33 lines
591 B
Nix
33 lines
591 B
Nix
|
{ lib, ... }: {
|
||
|
imports = [ ./wireguard.nix ];
|
||
|
networking = {
|
||
|
hostName = "Rico0";
|
||
|
|
||
|
networkmanager = {
|
||
|
enable = true;
|
||
|
dns = "systemd-resolved";
|
||
|
wifi = {
|
||
|
backend = "iwd";
|
||
|
powersave = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
useDHCP = lib.mkDefault false;
|
||
|
|
||
|
wireless.iwd = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
General = {
|
||
|
AddressRandomization = "network";
|
||
|
EnableNetworkConfiguration = false;
|
||
|
};
|
||
|
Settings = {
|
||
|
AutoConnect = "yes";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.resolved.enable = true;
|
||
|
}
|