silenceLogs => !verboseLogs

This commit is contained in:
Motiejus Jakštys 2023-10-22 23:06:06 +03:00
parent 6ec9721776
commit 0dfd9fb232
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ in {
options.mj.services.tailscale = with types; {
enable = mkEnableOption "Enable tailscale";
# https://github.com/tailscale/tailscale/issues/1548
silenceLogs = mkOption {
verboseLogs = mkOption {
type = bool;
default = true;
default = false;
};
};
@ -22,7 +22,7 @@ in {
networking.firewall.checkReversePath = "loose";
networking.firewall.allowedUDPPorts = [myData.ports.tailscale];
}
(mkIf cfg.silenceLogs {
(mkIf (!cfg.verboseLogs) {
systemd.services.tailscaled.serviceConfig.StandardOutput = "null";
})
]);