From cee5ddbb284692d98e35f97d2aba0ab9b422ff3a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 19 Apr 2020 22:57:07 -0700 Subject: [PATCH] nixos/tailscale: set a CacheDir in the systemd unit. Fixes a bug where tailscaled drops some files into / when CacheDir is unset. Signed-off-by: David Anderson --- nixos/modules/services/networking/tailscale.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/tailscale.nix b/nixos/modules/services/networking/tailscale.nix index 513c42b40117..4d6aeb75ebd1 100644 --- a/nixos/modules/services/networking/tailscale.nix +++ b/nixos/modules/services/networking/tailscale.nix @@ -37,7 +37,10 @@ in { RuntimeDirectoryMode = 755; StateDirectory = "tailscale"; - StateDirectoryMode = 700; + StateDirectoryMode = 750; + + CacheDirectory = "tailscale"; + CacheDirectoryMode = 750; Restart = "on-failure"; };