sisyphus/nixos/modules/services/tailscale/default.nix

15 lines
295 B
Nix
Raw Normal View History

2023-10-28 11:14:50 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.tailscale;
in {
options.sisyphus.services.tailscale.enable = lib.mkEnableOption "Tailscale";
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
};
};
}