nixos/firefly-iii: change statedirectory

Set `StateDirectory=firefly-iii` instead of trying to derive it from
`dataDir` + add `dataDir` to `ReadWritePaths`, allowing `dataDir` to be
set to full paths outside of `/var/lib`.
This commit is contained in:
Kai Norman Clasen 2024-06-14 22:29:09 +02:00
parent a0f5ca8289
commit 14b558e094
No known key found for this signature in database

View File

@ -46,7 +46,8 @@ let
Type = "oneshot";
User = user;
Group = group;
StateDirectory = "${removePrefix "/var/lib/" cfg.dataDir}";
StateDirectory = "firefly-iii";
ReadWritePaths = [cfg.dataDir];
WorkingDirectory = cfg.package;
PrivateTmp = true;
PrivateDevices = true;