nix-config/modules/network/tailscale.nix
2025-02-28 00:04:49 +01:00

21 lines
363 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.network.tailscale;
in {
options = {
horseman.network.tailscale = {
enable = mkEnableOption "Enable the Tailscale VPN service";
};
};
config = mkIf cfg.enable {
services.tailscale.enable = true;
};
}