dotfiles/modules/vpn/tailscale.nix

24 lines
297 B
Nix
Raw Normal View History

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