blob: 73cf06b00607cd324ca6ab99543c139b5c3b4d00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ config, lib, ... }:
let cfg = config.my.services.tailscale;
in {
options.my.services.tailscale = with lib; {
enable = mkEnableOption "tailscale configuration";
};
config = lib.mkIf cfg.enable {
services.tailscale.enable = true;
networking.firewall.trustedInterfaces = [ "tailscale0" ];
networking.firewall.checkReversePath = "loose";
};
}
|