dotfiles/modules/vpn/tailscale.nix

17 lines
288 B
Nix
Raw Normal View History

2024-07-18 11:48:49 +00:00
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.tailscale;
in {
options.modules.tailscale = {
enable = mkEnableOption "tailscale";
};
config = mkIf cfg.enable {
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
};
};
}