nixos-config/modules/tailscale/default.nix

19 lines
334 B
Nix
Raw Normal View History

2023-12-20 11:34:47 +01:00
{ config, lib, ... }:
with lib;
let
cfg = config.eboskma.tailscale;
in
{
options.eboskma.tailscale = { enable = mkEnableOption "tailscale"; };
config = mkIf cfg.enable {
services.tailscale = {
enable = true;
};
systemd.services.tailscaled.environment = {
TS_DEBUG_FIREWALL_MODE = "auto";
};
};
}