18 lines
334 B
Nix
18 lines
334 B
Nix
{
|
|
nixos =
|
|
{ config, lib, ... }:
|
|
let
|
|
cfg = config.features.tailscale;
|
|
in
|
|
{
|
|
options.features.tailscale.enable = lib.mkEnableOption "tailscale";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
useRoutingFeatures = "both";
|
|
};
|
|
};
|
|
};
|
|
}
|