tailscale: Set firewall mode when nftables is enabled
This commit is contained in:
parent
e59585530e
commit
92edb06f46
1 changed files with 5 additions and 2 deletions
|
@ -4,14 +4,17 @@ let
|
|||
cfg = config.eboskma.tailscale;
|
||||
in
|
||||
{
|
||||
options.eboskma.tailscale = { enable = mkEnableOption "tailscale"; };
|
||||
options.eboskma.tailscale = {
|
||||
enable = mkEnableOption "tailscale";
|
||||
nftables = mkEnableOption "nftables";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
systemd.services.tailscaled.environment = {
|
||||
systemd.services.tailscaled.environment = mkIf cfg.nftables {
|
||||
TS_DEBUG_FIREWALL_MODE = "auto";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue