14 lines
295 B
Nix
14 lines
295 B
Nix
{ 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";
|
|
};
|
|
};
|
|
}
|