tailscale: silence logs on some machines

This commit is contained in:
2023-09-14 14:37:55 +03:00
parent aad4502030
commit 9eb8147660
7 changed files with 42 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
myData,
...
}: {
options.mj.services.tailscale = with lib.types; {
enable = lib.mkEnableOption "Enable tailscale";
# https://github.com/tailscale/tailscale/issues/1548
silenceLogs = lib.mkOption {
type = bool;
default = false;
};
};
config = with config.mj.services.tailscale;
lib.mkIf enable {
services.tailscale.enable = true;
networking.firewall.checkReversePath = "loose"; # for tailscale
}
// lib.mkIf silenceLogs {
systemd.services.tailscale.serviceConfig."StandardOutput" = "null";
};
}