From 256b41c880e77743e2cc97435ecba3a115b20f73 Mon Sep 17 00:00:00 2001 From: kalipso Date: Fri, 11 Apr 2025 19:47:15 +0200 Subject: [PATCH] fix systemd PATH --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 = ''