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