diff --git a/flake.nix b/flake.nix index 26dbccb..17efc72 100644 --- a/flake.nix +++ b/flake.nix @@ -83,7 +83,11 @@ description = "zineshop daemon"; serviceConfig = { Type = "simple"; - ExecStart = "${zineshop-pkg}/bin/zineshop"; + ExecStart = (pkgs.writeScript "start-zineshop" '' + #! ${pkgs.bash}/bin/bash + PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils ]}"; + "${zineshop-pkg}/bin/zineshop" + ''); Restart = "on-failure"; }; @@ -93,7 +97,6 @@ PORT = "8080"; STATIC = "/var/lib/zineshop/static"; VIEWS = "/var/lib/zineshop/views"; - PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils ]}"; }; preStart = ''