From 36c5e384345121c86d2b585231bfef230034295b Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:32:11 +0400 Subject: [PATCH] make tailscale module in desktop --- modules/desktop/tailscale/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modules/desktop/tailscale/default.nix diff --git a/modules/desktop/tailscale/default.nix b/modules/desktop/tailscale/default.nix new file mode 100644 index 00000000..b88befb8 --- /dev/null +++ b/modules/desktop/tailscale/default.nix @@ -0,0 +1,9 @@ +{ outputs, options, config, lib, pkgs, ... }: +let cfg = config.modules.desktop.wireguard; +in { + options.modules.desktop.wireguard = { enable = lib.mkEnableOption false; }; + + config = lib.mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ tailscale ]; + }; +}