2023-11-04 16:12:45 +05:30
|
|
|
{ lib, ... }: {
|
|
|
|
imports = [ ./wireguard.nix ];
|
2023-08-19 23:20:07 +05:30
|
|
|
networking = {
|
|
|
|
hostName = "Rico1";
|
|
|
|
|
2023-11-11 23:59:42 +05:30
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
dns = "systemd-resolved";
|
|
|
|
wifi = {
|
|
|
|
backend = "iwd";
|
|
|
|
powersave = false;
|
|
|
|
};
|
|
|
|
};
|
2023-08-19 23:20:07 +05:30
|
|
|
|
2023-11-11 23:59:42 +05:30
|
|
|
useDHCP = lib.mkDefault false;
|
|
|
|
|
|
|
|
wireless.iwd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
AddressRandomization = "network";
|
|
|
|
EnableNetworkConfiguration = false;
|
2023-08-19 23:20:07 +05:30
|
|
|
};
|
2023-11-11 23:59:42 +05:30
|
|
|
Settings = {
|
|
|
|
AutoConnect = "yes";
|
2023-08-19 23:20:07 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-11 23:59:42 +05:30
|
|
|
|
2024-01-04 21:51:15 +05:30
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
[Resolve]
|
|
|
|
DNS=2620:fe::fe#dns.quad9.net 9.9.9.9#dns.quad9.net 2620:fe::9#dns.quad9.net 149.112.112.112#dns.quad9.net
|
|
|
|
FallbackDNS=
|
|
|
|
DNSOverTLS=opportunistic
|
|
|
|
Domains=~.
|
|
|
|
'';
|
|
|
|
};
|
2023-08-19 23:20:07 +05:30
|
|
|
}
|