Skip to content

Commit 715b664

Browse files
committed
fix(nix): ensure working directory exists
1 parent e740f3a commit 715b664

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ in
2424

2525
serviceConfig = {
2626
ExecStart = "${pkgs.lib.getExe pkgs.bapsicle}";
27-
WorkingDirectory = "%h/.local/state/bapsicle";
27+
ExecStartPre = "mkdir -p %h/.local/state/bapsicle";
28+
WorkingDirectory = "-%h/.local/state/bapsicle";
2829
LockPersonality = "yes";
2930
MemoryDenyWriteExecute = "yes";
3031
NoNewPrivileges = "yes";

0 commit comments

Comments
 (0)