nixos-config/common/components/networking.nix

23 lines
451 B
Nix
Raw Permalink Normal View History

2024-08-10 19:23:59 +02:00
{
2024-04-22 21:01:29 +02:00
networking = {
networkmanager = {
2024-10-05 09:57:20 +02:00
enable = true;
2024-04-22 21:24:54 +02:00
2024-04-22 21:01:29 +02:00
# Randomize MAC for every ethernet connetion
2024-10-05 11:38:36 +02:00
# ethernet.macAddress = "random";
# connectionConfig = {
# # IPv6 Privacy Extensions
# "ipv6.ip6-privacy" = 2;
2024-04-22 21:01:29 +02:00
2024-10-05 11:38:36 +02:00
# # unique DUID per connection
# "ipv6.dhcp-duid" = "stable-uuid";
# };
2024-04-22 21:01:29 +02:00
};
firewall = {
enable = true;
trustedInterfaces = ["tailscale0"];
};
};
}