From 40de9b5f5bf1e6acb5c57cc97ea1567b5aa300ef Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:45:39 +0100 Subject: [PATCH] add tailscale --- home/programs/tailscale/default.nix | 6 ++++++ hosts/laptop/configuration.nix | 1 + hosts/laptop/home.nix | 1 + hosts/server/configuration.nix | 1 + hosts/server/home.nix | 1 + nixos/tailscale.nix | 1 + 6 files changed, 11 insertions(+) create mode 100644 home/programs/tailscale/default.nix create mode 100644 nixos/tailscale.nix diff --git a/home/programs/tailscale/default.nix b/home/programs/tailscale/default.nix new file mode 100644 index 0000000..3d7cac5 --- /dev/null +++ b/home/programs/tailscale/default.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ tailscale tailscale-systray ]; + + wayland.windowManager.hyprland.settings.exec-once = + [ "${pkgs.tailscale-systray}/bin/tailscale-systray" ]; +} diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 8638e89..b2bba90 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -13,6 +13,7 @@ ../../nixos/users.nix ../../nixos/utils.nix # ../../nixos/docker.nix + ../../nixos/tailscale.nix # You should let those lines as is ./hardware-configuration.nix diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index cf2440e..1d0b94b 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -17,6 +17,7 @@ ../../home/programs/zen ../../home/programs/duckduckgo-colorscheme ../../home/programs/discord + ../../home/programs/tailscale # Scripts ../../home/scripts # All scripts diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index f747c03..b14deaf 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -6,6 +6,7 @@ ../../nixos/users.nix ../../nixos/utils.nix ../../nixos/docker.nix + ../../nixos/tailscale.nix ../../server-modules/ssh.nix diff --git a/hosts/server/home.nix b/hosts/server/home.nix index 8411ac3..b70c4b4 100644 --- a/hosts/server/home.nix +++ b/hosts/server/home.nix @@ -35,6 +35,7 @@ pfetch btop fastfetch + tailscale ]; # Don't touch this diff --git a/nixos/tailscale.nix b/nixos/tailscale.nix new file mode 100644 index 0000000..e6ae0b4 --- /dev/null +++ b/nixos/tailscale.nix @@ -0,0 +1 @@ +{ services.tailscale = { enable = true; }; }