nixos/modules/desktop/tailscale/default.nix
2024-11-07 20:45:50 +04:00

10 lines
311 B
Nix

{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.desktop.tailscale;
in {
options.modules.desktop.tailscale = { enable = lib.mkEnableOption false; };
config = lib.mkIf cfg.enable {
services.tailscale = { enable = true; };
networking.firewall.checkReversePath = "loose";
};
}