mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 15:23:45 +00:00
26 lines
407 B
Nix
26 lines
407 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.services.tailscale;
|
|
inherit
|
|
(lib)
|
|
mkEnableOption
|
|
mkIf
|
|
mkOption
|
|
types
|
|
;
|
|
in {
|
|
# Tailscale config options
|
|
options.services.tailscale = {
|
|
enable = mkEnabledOption "Enable Tailscale service";
|
|
|
|
port = mkOption {
|
|
type = types.port;
|
|
default = 41641;
|
|
description = "The port Tailscale listens on.";
|
|
};
|
|
};
|
|
}
|