20 lines
470 B
Nix
20 lines
470 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";
|
|
nameservers = [ "100.80.195.56" ];
|
|
networkmanager.dns = "none";
|
|
};
|
|
services.tailscale.enable = true;
|
|
};
|
|
}
|