configuration.nix/hosts/skipper/network/default.nix

54 lines
952 B
Nix
Raw Normal View History

2024-07-07 00:25:54 +05:30
_: {
2024-03-31 22:28:56 +05:30
imports = [
2024-07-07 00:25:54 +05:30
../../shared/network.nix
2024-03-31 22:28:56 +05:30
./wireguard.nix
];
2023-07-20 20:40:19 +05:30
networking = {
2024-07-05 00:58:38 +05:30
extraHosts = ''
10.10.10.1 Proxy
10.10.10.2 Skipper
10.10.10.10 Rico0
10.10.10.11 Rico1
10.10.10.12 Rico2
10.10.10.13 Wynne
10.10.10.14 Layne
'';
2024-03-23 22:03:08 +05:30
firewall = {
allowedTCPPorts = [
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
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-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
};
};
};
};
}