Commit 97907d65e7e9

Vincent Demeester <vincent@sbr.pm>
2026-01-09 01:08:06
fix(kerkouane): Fix gitmal PATH issues in git hooks
- Add PATH to generate-gitmal.sh script internally - Remove hardcoded PATH from systemd-run command - Ensure git is available when gitmal runs Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 0ee212a
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"