From 35e8b8b78d4ad3b8002b922bc0a9f9dcbcf47351 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 5 Apr 2022 17:27:04 -0700 Subject: network: move tailscale in modules Move the networking configuration for the hosts to its own file. --- hosts/tahoe/networking.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hosts/tahoe/networking.nix (limited to 'hosts/tahoe/networking.nix') diff --git a/hosts/tahoe/networking.nix b/hosts/tahoe/networking.nix new file mode 100644 index 0000000..1b0568e --- /dev/null +++ b/hosts/tahoe/networking.nix @@ -0,0 +1,22 @@ +{ ... }: { + # Use systemd-networkd for networking + systemd.network = { + enable = true; + networks = { + enp42s0 = { + matchConfig.Name = "enp42s0"; + networkConfig = { DHCP = "yes"; }; + extraConfig = '' + [DHCPv4] + UseDNS=yes + UseDomains=yes + ''; + }; + }; + }; + + networking.private-wireguard.enable = true; + networking.firewall.enable = false; + + my.services.tailscale.enable = true; +} -- cgit 1.4.1