blob: 14753f4b652b3f5ac233f79caffebec134fbbae5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ 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";
};
}
|