nixos-config/common/components/networking.nix

23 lines
453 B
Nix
Raw Normal View History

2024-08-10 19:23:59 +02:00
{
2024-04-22 21:01:29 +02:00
networking = {
networkmanager = {
2024-10-03 12:36:09 +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-03 12:36:09 +02:00
# ethernet.macAddress = "random";
# connectionConfig = {
# # IPv6 Privacy Extensions
# "ipv6.ip6-privacy" = 2;
2024-04-22 21:01:29 +02:00
2024-10-03 12:36:09 +02:00
# # unique DUID per connection
# "ipv6.dhcp-duid" = "stable-uuid";
# };
2024-04-22 21:01:29 +02:00
};
firewall = {
enable = true;
trustedInterfaces = ["tailscale0"];
};
};
}