From fcf686f238e926efa67b5f25c5b5adc3ef57dad2 Mon Sep 17 00:00:00 2001 From: Isaac Corbrey Date: Sat, 31 Jan 2026 12:25:21 -0500 Subject: [PATCH] tailscale: enable service and systray --- hosts/zephyr/configuration.nix | 1 + hosts/zephyr/home/icorbrey.nix | 1 + modules/home/default.nix | 1 + modules/home/tailscale.nix | 20 ++++++++++++++++++++ modules/nixos/system/default.nix | 1 + modules/nixos/system/tailscale.nix | 20 ++++++++++++++++++++ 6 files changed, 44 insertions(+) create mode 100644 modules/home/tailscale.nix create mode 100644 modules/nixos/system/tailscale.nix diff --git a/hosts/zephyr/configuration.nix b/hosts/zephyr/configuration.nix index d5f2c83..77ccffc 100644 --- a/hosts/zephyr/configuration.nix +++ b/hosts/zephyr/configuration.nix @@ -18,6 +18,7 @@ system.bluetooth.enable = true; system.intel-graphics.enable = true; system.printing.enable = true; + system.tailscale.enable = true; system.flatpak.enable = true; system.wayland.enable = true; diff --git a/hosts/zephyr/home/icorbrey.nix b/hosts/zephyr/home/icorbrey.nix index 543f0d0..fb46688 100644 --- a/hosts/zephyr/home/icorbrey.nix +++ b/hosts/zephyr/home/icorbrey.nix @@ -48,6 +48,7 @@ fonts.enable = true; steam.enable = true; niri.enable = true; + tailscale.enable = true; # Language support webdev-common.enable = true; diff --git a/modules/home/default.nix b/modules/home/default.nix index 19738dc..172bf0c 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -22,6 +22,7 @@ ./rust.nix ./starship.nix ./steam.nix + ./tailscale.nix ./wayland.nix ./webdev-common.nix ./wezterm diff --git a/modules/home/tailscale.nix b/modules/home/tailscale.nix new file mode 100644 index 0000000..108ddb7 --- /dev/null +++ b/modules/home/tailscale.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + pkgs, + ... +}: { + options.modules.home.tailscale = { + enable = lib.mkEnableOption "tailscale"; + }; + + config = let + tailscale = config.modules.home.tailscale; + in + lib.mkIf tailscale.enable { + home.packages = [ + pkgs.tailscale + pkgs.tailscale-systray + ]; + }; +} diff --git a/modules/nixos/system/default.nix b/modules/nixos/system/default.nix index 778397e..7dab42f 100644 --- a/modules/nixos/system/default.nix +++ b/modules/nixos/system/default.nix @@ -9,6 +9,7 @@ ./networking.nix ./power-management.nix ./printing.nix + ./tailscale.nix ./time.nix ./wayland.nix ]; diff --git a/modules/nixos/system/tailscale.nix b/modules/nixos/system/tailscale.nix new file mode 100644 index 0000000..c66b8c0 --- /dev/null +++ b/modules/nixos/system/tailscale.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + pkgs, + ... +}: { + options.modules.nixos.system.tailscale = { + enable = lib.mkEnableOption "tailscale (system daemon)"; + }; + + config = let + tailscale = config.modules.nixos.system.tailscale; + in + lib.mkIf tailscale.enable { + services.tailscale.enable = true; + environment.systemPackages = [ + pkgs.tailscale + ]; + }; +} -- 2.51.2