Commit 97907d65e7e9
Changed files (1)
systems
kerkouane
systems/kerkouane/extra.nix
@@ -214,6 +214,9 @@ in
echo "Output directory: $OUTPUT_DIR"
echo "Theme: $THEME"
+ # Set PATH to include git (gitmal needs it internally)
+ export PATH="${pkgs.git}/bin:${pkgs.coreutils}/bin:$PATH"
+
# Generate static site with gitmal
cd "$REPO_PATH"
${pkgs.gitmal}/bin/gitmal --output "$OUTPUT_DIR" --theme "$THEME"
@@ -291,7 +294,6 @@ in
--property="OnFailure=git-notify@''${UNIT_NAME}.service" \
--property="User=vincent" \
--property="Group=users" \
- --property="Environment=PATH=${pkgs.coreutils}/bin:${pkgs.git}/bin:${pkgs.gitmal}/bin" \
--working-directory="$REPO_PATH" \
/etc/git-hooks/generate-gitmal.sh "$REPO_PATH" "$GITMAL_THEME"