2023-11-04 16:12:45 +05:30
|
|
|
{ lib, ... }: {
|
2024-03-31 22:28:56 +05:30
|
|
|
imports = [
|
|
|
|
./wireguard.nix
|
|
|
|
];
|
|
|
|
|
2023-07-20 20:40:19 +05:30
|
|
|
networking = {
|
2024-03-23 22:03:08 +05:30
|
|
|
firewall = {
|
|
|
|
allowedTCPPorts = [
|
2024-03-31 03:11:46 +05:30
|
|
|
41414 #Torrent
|
2024-03-23 22:03:17 +05:30
|
|
|
53317 #LocalSend
|
|
|
|
];
|
|
|
|
allowedUDPPorts = [
|
2024-03-31 22:29:03 +05:30
|
|
|
6771 #Torrent
|
2024-03-31 03:11:55 +05:30
|
|
|
41414 #Torrent
|
2024-03-23 22:03:17 +05:30
|
|
|
53317 #LocalSend
|
2024-03-23 22:03:08 +05:30
|
|
|
];
|
|
|
|
};
|
2024-03-23 17:50:50 +05:30
|
|
|
|
2024-06-21 21:50:26 +05:30
|
|
|
nameservers = [
|
|
|
|
"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"
|
|
|
|
];
|
|
|
|
|
2023-09-23 13:18:33 +05:30
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
2024-01-04 21:51:28 +05:30
|
|
|
dhcp = "dhcpcd";
|
2023-09-23 13:18:33 +05:30
|
|
|
dns = "systemd-resolved";
|
|
|
|
wifi = {
|
|
|
|
backend = "iwd";
|
|
|
|
powersave = false;
|
|
|
|
};
|
|
|
|
};
|
2023-11-11 23:59:42 +05:30
|
|
|
|
2023-07-20 23:33:31 +05:30
|
|
|
useDHCP = lib.mkDefault false;
|
2023-11-11 23:59:42 +05:30
|
|
|
|
2023-07-20 20:40:19 +05:30
|
|
|
wireless.iwd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
AddressRandomization = "network";
|
2023-07-20 23:36:49 +05:30
|
|
|
EnableNetworkConfiguration = false;
|
2023-07-20 20:40:19 +05:30
|
|
|
};
|
|
|
|
Settings = {
|
2023-07-20 23:36:49 +05:30
|
|
|
AutoConnect = "yes";
|
2023-07-20 20:40:19 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-22 12:23:52 +05:30
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
2024-06-14 20:27:14 +05:30
|
|
|
dnssec = "true";
|
2024-06-14 20:27:07 +05:30
|
|
|
dnsovertls = "true";
|
|
|
|
domains = [ "~." ];
|
|
|
|
fallbackDns = [ ];
|
2023-11-22 12:23:52 +05:30
|
|
|
};
|
2023-07-20 20:40:19 +05:30
|
|
|
}
|