nixos/modules/desktop/tailscale/default.nix

11 lines
311 B
Nix
Raw Normal View History

2024-11-07 20:32:11 +04:00
{ outputs, options, config, lib, pkgs, ... }:
2024-11-07 20:32:49 +04:00
let cfg = config.modules.desktop.tailscale;
2024-11-07 20:32:11 +04:00
in {
2024-11-07 20:32:49 +04:00
options.modules.desktop.tailscale = { enable = lib.mkEnableOption false; };
2024-11-07 20:32:11 +04:00
2024-11-07 20:45:50 +04:00
config = lib.mkIf cfg.enable {
services.tailscale = { enable = true; };
networking.firewall.checkReversePath = "loose";
};
2024-11-07 20:32:11 +04:00
}