diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 86102df..553ae8c 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -11,7 +11,6 @@ ../../nixos/sddm.nix ../../nixos/users.nix ../../nixos/utils.nix - ../../nixos/tailscale.nix ../../nixos/hyprland.nix ../../nixos/docker.nix diff --git a/nixos/tailscale.nix b/nixos/tailscale.nix deleted file mode 100644 index 149b5a5..0000000 --- a/nixos/tailscale.nix +++ /dev/null @@ -1,41 +0,0 @@ -# Tailscale is a VPN service that makes it easy to connect your devices between each other. -{ - config, - inputs, - ... -}: let - username = config.var.username; -in { - security.sudo.extraRules = [ - { - users = [username]; - # Allow running Tailscale commands without a password - commands = [ - { - command = "/etc/profiles/per-user/${username}/bin/tailscale"; - options = ["NOPASSWD"]; - } - { - command = "/run/current-system/sw/bin/tailscale"; - options = ["NOPASSWD"]; - } - ]; - } - ]; - - environment.systemPackages = with inputs.nixpkgs-stable.legacyPackages.x86_64-linux; [ - tailscale - ]; - - services.tailscale = { - enable = true; - package = inputs.nixpkgs-stable.legacyPackages.x86_64-linux.tailscale; - openFirewall = true; - }; - - networking.firewall = { - trustedInterfaces = ["tailscale0"]; - # required to connect to Tailscale exit nodes - checkReversePath = "loose"; - }; -}