Skip to content

feat: add hunk diff viewer for darwin and wsl-devbox - #101

Open
Dumspy wants to merge 1 commit into
masterfrom
feat/hunk-diff-viewer
Open

feat: add hunk diff viewer for darwin and wsl-devbox#101
Dumspy wants to merge 1 commit into
masterfrom
feat/hunk-diff-viewer

Conversation

@Dumspy

@Dumspy Dumspy commented Aug 18, 2026

Copy link
Copy Markdown
Owner

What

Adds hunk — a review-first terminal diff viewer — to the shared home config, covering both macOS (aarch64-darwin) and the WSL devbox (x86_64-linux).

Changes

  • flake.nix: new hunk input (github:modem-dev/hunk, nixpkgs follows ours)
  • lib/default.nix: import hunk.homeManagerModules.default in both mkDarwin and mkNixos home-manager configs
  • modules/home/hunk.nix: new myModules.home.hunk module (enable, settings, enableGitIntegration)
  • hosts/common/home.nix: enabled for both machines with:
    • theme = "catppuccin-macchiato" (matches the rest of the setup)
    • line_numbers = true, tab_width = 4
    • git integration: core.pager = "hunk pager" so git diff / git show open in hunk

Verification

  • nix eval .#darwinConfigurations.darwin.config.system.build.toplevel.drvPath
  • wsl-devbox: hunk package (hunkdiff-0.19.0) present in home.packages, theme + git pager options verified ✅
  • alejandra + deadnix hooks pass ✅

Note: the wsl-devbox toplevel.drvPath can't fully realize from this Mac (x86_64-linux catppuccin/starship dep needs a Linux builder) — pre-existing cross-platform limitation, covered by CI.

After merge

Rebuild on macOS (./rebuild.sh) and on the WSL box (git pull && ./rebuild.sh).

Add hunk (modem-dev/hunk) as a flake input and enable it via a new
myModules.home.hunk module on the shared home config, covering both
the macOS (aarch64-darwin) and WSL devbox (x86_64-linux) targets.

- hunk package from the upstream flake (bun2nix build)
- programs.hunk home-manager module with catppuccin-macchiato theme
- core.pager = "hunk pager" git integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant