mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
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:
parent
a0f5ca8289
commit
14b558e094
@ -46,7 +46,8 @@ let
|
|||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = user;
|
User = user;
|
||||||
Group = group;
|
Group = group;
|
||||||
StateDirectory = "${removePrefix "/var/lib/" cfg.dataDir}";
|
StateDirectory = "firefly-iii";
|
||||||
|
ReadWritePaths = [cfg.dataDir];
|
||||||
WorkingDirectory = cfg.package;
|
WorkingDirectory = cfg.package;
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user