mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 23:33: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.";
|
||
|
};
|
||
|
};
|
||
|
}
|