From cacccaef062b86a41428c37ae93906ae8200c74a Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Sun, 5 Oct 2025 15:29:21 +0200 Subject: [PATCH] add tailscale --- home-modules/pc.nix | 1 + hosts/acer.nix | 1 + modules/default.nix | 1 + modules/desktop/tailscale.nix | 12 ++++++++++++ 4 files changed, 15 insertions(+) create mode 100644 modules/desktop/tailscale.nix diff --git a/home-modules/pc.nix b/home-modules/pc.nix index cd58773..10d0967 100644 --- a/home-modules/pc.nix +++ b/home-modules/pc.nix @@ -32,6 +32,7 @@ '' ) signal-desktop + ktailctl ]; programs.librewolf.enable = true; services.easyeffects.enable = true; diff --git a/hosts/acer.nix b/hosts/acer.nix index 39ff9e8..e3371be 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -87,6 +87,7 @@ rec { }; laptop = true; gaming = true; + enableTailscale = true; }; virtualisation.vmVariant = { diff --git a/modules/default.nix b/modules/default.nix index a38aec9..1536ffc 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -19,5 +19,6 @@ desktop/plasma.nix desktop/touchpad.nix desktop/pulseaudio.nix + desktop/tailscale.nix ]; } \ No newline at end of file diff --git a/modules/desktop/tailscale.nix b/modules/desktop/tailscale.nix new file mode 100644 index 0000000..6ea766d --- /dev/null +++ b/modules/desktop/tailscale.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + options.lumpiasty.enableTailscale = lib.mkEnableOption "Enable Tailscale VPN"; + + config = lib.mkIf config.lumpiasty.enableTailscale { + services.tailscale = { + enable = true; + extraSetFlags = [ "--operator=user" ]; + }; + }; +} \ No newline at end of file