16 lines
377 B
Nix
16 lines
377 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.samfelag.modules.system.tailscale;
|
|
in
|
|
{
|
|
options.samfelag.modules.system.tailscale = {
|
|
enable = lib.mkEnableOption "tailscale";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
# See https://github.com/tailscale/tailscale/issues/4432
|
|
networking.firewall.checkReversePath = "loose";
|
|
services.tailscale.enable = true;
|
|
};
|
|
}
|