nixos-configuration/modules/tailscale.nix
Vinzenz Schroeter d790d3ba3e add tailscale
2023-12-04 22:25:46 +01:00

20 lines
285 B
Nix

{
pkgs,
config,
lib,
...
}: let
cfg = config.my.tailscale;
in {
options.my.tailscale = {
enable = lib.mkEnableOption "enable tailscale vpn";
};
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
openFirewall = true;
};
};
}