nixos-config/common/components/networking.nix
2024-04-22 21:24:54 +02:00

23 lines
437 B
Nix

{
networking = {
networkmanager = {
enable = true;
# Randomize MAC for every ethernet connetion
ethernet.macAddress = "random";
connectionConfig = {
# IPv6 Privacy Extensions
"ipv6.ip6-privacy" = 2;
# unique DUID per connection
"ipv6.dhcp-duid" = "stable-uuid";
};
};
firewall = {
enable = true;
trustedInterfaces = ["tailscale0"];
};
};
}