nixcfg/nixosModules/services/tailscale/default.nix

18 lines
295 B
Nix

{
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.services.tailscale.enable = lib.mkEnableOption "Enable Tailscale";
};
config = lib.mkIf config.alyraffauf.services.tailscale.enable {
services.tailscale = {
enable = true;
openFirewall = true;
};
};
}