21 lines
400 B
Nix
21 lines
400 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.eboskma.tailscale;
|
|
in
|
|
{
|
|
options.eboskma.tailscale = {
|
|
enable = mkEnableOption "tailscale";
|
|
nftables = mkEnableOption "nftables";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
};
|
|
|
|
systemd.services.tailscaled.environment = mkIf cfg.nftables {
|
|
TS_DEBUG_FIREWALL_MODE = "auto";
|
|
};
|
|
};
|
|
}
|