16 lines
342 B
Nix
16 lines
342 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
{
|
|
options = {
|
|
modules.system.tailscale.enable = lib.mkEnableOption "enables tailscale";
|
|
};
|
|
|
|
config = lib.mkIf config.modules.system.tailscale.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
useRoutingFeatures = "both";
|
|
authKeyFile = "/run/secrets/tailscale_authfile";
|
|
};
|
|
};
|
|
}
|