From 1ad1a43d9c391a6261746359c79828c841b4d1e9 Mon Sep 17 00:00:00 2001 From: death916 Date: Sun, 11 May 2025 14:15:36 +0000 Subject: [PATCH] tailscale on homelab --- home-manager/death916-homelab.nix | 1 + nixos/homelab.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home-manager/death916-homelab.nix b/home-manager/death916-homelab.nix index 4a2830f..6392a7b 100644 --- a/home-manager/death916-homelab.nix +++ b/home-manager/death916-homelab.nix @@ -25,4 +25,5 @@ # Keep this consistent with your system's state version home.stateVersion = "24.11"; + programs.home-manager.enable = true; } diff --git a/nixos/homelab.nix b/nixos/homelab.nix index 3443f34..a62579a 100644 --- a/nixos/homelab.nix +++ b/nixos/homelab.nix @@ -24,7 +24,11 @@ settings.PasswordAuthentication = false; # Recommended: use SSH keys settings.PermitRootLogin = "no"; # Recommended }; - + services.tailscale = { + enable = true; + useRoutingFeatures = "both"; + }; + networking.firewall.checkReversePath = "loose"; #needed for tailscale nodes # Define the 'death916' user for the server users.users.death916 = { isNormalUser = true; @@ -48,7 +52,7 @@ tmux # Add other common server utilities ]; - + # If you use custom overlays specific to this server: # nixpkgs.overlays = [(import ../overlays/homelab-overlay.nix)];