Skip to content

Commit f3f7f71

Browse files
committed
Fix systemd service in nixos module v2
1 parent 6b33212 commit f3f7f71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nix/package.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
stdenvNoCC,
44
cacert,
55
nodejs,
6+
bash,
67
yarn-berry,
78
makeWrapper
89
}:
@@ -90,7 +91,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
9091
9192
cp -r ./dist/* $out/lib/
9293
93-
echo -e "#!/usr/bin/env sh\n${lib.getExe nodejs} $out/lib/server/entry.mjs" > $out/bin/website
94+
echo -e "#!/usr/bin/env ${lib.getExe bash}\n${lib.getExe nodejs} $out/lib/server/entry.mjs" > $out/bin/website
9495
chmod +x $out/bin/website
9596
9697
runHook postInstall

0 commit comments

Comments
 (0)