From 72d651c1588e11f113be8f510fbbdb735e589fd4 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Thu, 20 Jul 2023 06:41:11 +0100 Subject: [PATCH] Revert to dhcp assigned IPs. Static ones result in duplicate ping responses (?!). --- hosts/c1/default.nix | 12 +----------- hosts/c2/default.nix | 12 +----------- hosts/c3/default.nix | 12 +----------- 3 files changed, 3 insertions(+), 33 deletions(-) diff --git a/hosts/c1/default.nix b/hosts/c1/default.nix index 31ad3b6..76113f1 100644 --- a/hosts/c1/default.nix +++ b/hosts/c1/default.nix @@ -6,16 +6,6 @@ ./hardware.nix ]; - networking = { - useDHCP = pkgs.lib.mkForce false; - hostName = "c1"; - domain = "home.paler.net"; - interfaces.eno1.ipv4.addresses = [{ - address = "192.168.1.71"; - prefixLength = 24; - }]; - defaultGateway = "192.168.1.1"; - nameservers = [ "192.168.1.1" ]; - }; + networking.hostName = "c1"; services.tailscaleAutoconnect.authkey = "tskey-auth-kmFvBT3CNTRL-wUbELKSd5yhuuTwTcgJZxhPUTxKgcYKF"; } diff --git a/hosts/c2/default.nix b/hosts/c2/default.nix index 388862d..df4c9e4 100644 --- a/hosts/c2/default.nix +++ b/hosts/c2/default.nix @@ -6,16 +6,6 @@ ./hardware.nix ]; - networking = { - useDHCP = pkgs.lib.mkForce false; - hostName = "c2"; - domain = "home.paler.net"; - interfaces.eno1.ipv4.addresses = [{ - address = "192.168.1.72"; - prefixLength = 24; - }]; - defaultGateway = "192.168.1.1"; - nameservers = [ "192.168.1.1" ]; - }; + networking.hostName = "c2"; services.tailscaleAutoconnect.authkey = "tskey-auth-kbYnZK2CNTRL-SpUVCuzS6P3ApJiDaB6RM3M4b8M9TXgS"; } diff --git a/hosts/c3/default.nix b/hosts/c3/default.nix index 70e4948..86756e7 100644 --- a/hosts/c3/default.nix +++ b/hosts/c3/default.nix @@ -6,16 +6,6 @@ ./hardware.nix ]; - networking = { - useDHCP = pkgs.lib.mkForce false; - hostName = "c3"; - domain = "home.paler.net"; - interfaces.eno1.ipv4.addresses = [{ - address = "192.168.1.73"; - prefixLength = 24; - }]; - defaultGateway = "192.168.1.1"; - nameservers = [ "192.168.1.1" ]; - }; + networking.hostName = "c3"; services.tailscaleAutoconnect.authkey = "tskey-auth-kDNknU5CNTRL-iEGHyo8GDZBCVLaMutJjZBHH7wCuCDyFb"; }