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