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 <dave@natulte.net>
This commit is contained in:
David Anderson 2020-04-19 22:57:07 -07:00
parent 32029f3c7f
commit cee5ddbb28

View File

@ -37,7 +37,10 @@ in {
RuntimeDirectoryMode = 755;
StateDirectory = "tailscale";
StateDirectoryMode = 700;
StateDirectoryMode = 750;
CacheDirectory = "tailscale";
CacheDirectoryMode = 750;
Restart = "on-failure";
};