Jakub Czajka [Tue, 24 Nov 2026 23:21:43 +0000 (23:21 +0000)]
[test] Add a PC VM test and share the VM test harness.
Turn home.scm and system.scm into importable modules exporting
pc-home-environment and pc-operating-system, then split the tests into
tests/base.scm for the marionette harness, tests/home.scm for the shared
home activation prelude and checks, and tests/{pc,vps}/ for the suites.
The PC suite lets GDM auto-login run the home activation as its X
session and then exec Guix's xinitrc, so dwm and the home services start
through the real login path; one test case checks that dwm runs as the
test user and that paseo-daemon, status-bar, and xcompmgr are running.
The harness now wraps every OS in marionette-operating-system, runs the
prelude before the tests, and aborts when it fails. The VPS suite keeps
the sshd, daemon, and claude-proxy checks and uses assert-vm-true for the
guest-side assertions. Move the claude-proxy live test and fake upstream
under tests/vps, add a test-pc Makefile target, and let 20-env.sh keep
GDM's DISPLAY instead of always forcing :1.
Jakub Czajka [Sun, 22 Nov 2026 21:03:32 +0000 (21:03 +0000)]
[ai] Fix block-worktrees responses and path checks.
Resolve git from PATH and return early outside a worktree, so a
missing worktree cannot block unrelated tools. Derive the project
root from git-common-dir, add hookEventName to hook responses, use
updatedInput for ExitWorktree, and match project-root writes only at
a path boundary.
Jakub Czajka [Sun, 22 Nov 2026 14:50:54 +0000 (14:50 +0000)]
[ai] Base worktrees on origin instead of HEAD.
With baseRef "head", a new worktree branches from the local HEAD.
If the local HEAD is unborn or cannot be read, git worktree add has
no commit to branch from and worktree creation deadlocks.
Use "fresh" so new worktrees branch from origin's default branch,
which is present even when the local HEAD is not.
Jakub Czajka [Sun, 22 Nov 2026 10:29:32 +0000 (10:29 +0000)]
[vps] Add a basic proxy for claude code.
Rewrites and forwards Claude Code requests to the upstream
Anthropic-compatible Messages API. Injects
thinking:disabled to safety-classifier requests to avoid DeepSeek's ~30s reasoning delay.
Jakub Czajka [Mon, 14 Sep 2026 21:39:03 +0000 (21:39 +0000)]
[home] Stop the home services before reconfiguring.
guix home reconfigure only loads new definitions into the running
Shepherd, so a changed running service is parked as a replacement while
the old process keeps serving; home-nonfree, home-libre, and vps-home
now stop claude-proxy and paseo-daemon before reconfiguring. A proxy
orphaned by a killed Shepherd keeps its port and needs a manual kill.
Every hook now checks that GUIX_BIN and required commands exist before
running. PreToolUse hooks deny with a visible reason on failure; other
hooks emit systemMessage. All hooks follow the create-worktree style:
copyright header, individual check blocks.
Fixed block-worktrees to not silently exit when CLAUDE_PROJECT_DIR is
unset (the hook derives proj_root from git, not that variable).
Fixed git push exemption in create-worktree to match full paths like
$HOME/.guix-profile/bin/git push.
The guix-build check now exits early only when the tree is clean and at
main tip. It warns and stops if the branch is behind main (needs
rebase), and falls through to the queue logic when there are staged
commits or a dirty tree.
Jakub Czajka [Fri, 24 Jul 2026 09:54:05 +0000 (09:54 +0000)]
[home] Note that the pi Bun --compile problem persists.
As of 2026-07-24, Bun 1.3.14 is still the latest release and still
fails on this system (kernel 7.0.14, glibc 2.39). Upstream pi (now
0.82.0) continues to build with a broken Bun, so the
npm-install-build-system workaround is still needed.
Jakub Czajka [Wed, 15 Jul 2026 22:52:27 +0000 (22:52 +0000)]
[vps] Add dnscrypt-proxy.
Package dnscrypt-proxy 2.1.7 with Shepherd service and
resolv-conf-service-type that extends etc-service-type. Wire into
vps-operating-system (dedicated user/group, resolver pointing at
127.0.0.1). Test port 53 and resolv.conf.
Jakub Czajka [Wed, 15 Jul 2026 22:49:55 +0000 (22:49 +0000)]
[test] Add VPS test harness infrastructure.
Boot a marionette VM that inherits from vps-operating-system with static
networking and a throwaway SSH key for dak. Add test-vps and
test-vps-fresh Makefile targets with cache. Cover SSH, NTP, the home
packages, and home activation: the activation test runs
vps-home-environment's activate script as dak.
Jakub Czajka [Sun, 12 Jul 2026 20:23:48 +0000 (22:23 +0200)]
[vps] Install paseo and Claude Code in vps-home.scm.
Add imports for (conf home paseo) and (conf home claude), a packages
field with claude-code, and paseo-service plus paseo-daemon-service
to the VPS home configuration.
Jakub Czajka [Thu, 9 Jul 2026 16:21:29 +0000 (18:21 +0200)]
[home] Simplify and clarify npm-install-build-system
Rename functions for clarity, drop coreutils dependency, merge
helpers into the build system as an inline lambda. Reduce four
top-level definitions to two.
Jakub Czajka [Tue, 7 Jul 2026 15:11:14 +0000 (17:11 +0200)]
[style] Separate then from if in shell scripts.
Move 'then' to its own line after 'if' for readability. Also
converts the remaining extended regex patterns in guix-check to basic
regex, and fixes a comment case in notify.
Jakub Czajka [Tue, 7 Jul 2026 16:13:40 +0000 (18:13 +0200)]
[home] Add paseo CLI package and services.
The paseo daemon spawns Claude Code agents, so CLAUDE_CONFIG_DIR is
set in the daemon environment to point to ~/.config/claude/, where the
home claude service installs its configuration. This ensures spawned
agents find their config without relying on shell init files.
Jakub Czajka [Mon, 6 Jul 2026 10:23:44 +0000 (12:23 +0200)]
[ai] Replace guard-commands with block-builds, block, and create hooks.
Splits the monolithic guard-commands hook into three single-purpose
hooks with more granular matchers in settings.json.
block-builds:
Guards guix and make build/reconfigure commands. Asks on main,
denies in for destructive operations (reconfigure,
home-*, system-*).
block:
Denies git checkout/switch outright. Enforces Enter
(must not already be in a ) and Exit (must not
have unpushed commits diverging from main). Sends a desktop
notification on Enter success.
create:
Uses a universal matcher ("*") to deny all tool calls on main
unless already inside the session's . Allows
Enter through to let the user enter an isolated session.
Jakub Czajka [Mon, 6 Jul 2026 09:43:07 +0000 (11:43 +0200)]
[ai] Move ask-build-queue from hooks/ to scripts/.
Relocates the build-queue dialog from the hooks directory to the
scripts directory, reflecting its role as a manually-invoked helper
rather than an automatic hook. Also adds branch-awareness: the
script now asks about builds on non-main branches and reconfigures
on main.
Jakub Czajka [Mon, 6 Jul 2026 08:37:59 +0000 (10:37 +0200)]
[ai] Add status-line hook showing session in prompt.
Displays the current session ID or branch name in the
Claude Code status line, making it visible at a glance whether
the session is running in an isolated or on main.
Jakub Czajka [Tue, 23 Jun 2026 20:49:10 +0000 (22:49 +0200)]
[ai] Extract build-queue dialog to standalone ask-build-queue script.
Move the AskUserQuestion dialog out of the guix-build Stop hook into
a separate script so it can be invoked proactively (before code changes
begin) rather than only at Stop time.
- ask-build-queue: new script with the build-target selection dialog.
Exits early if a queue file already exists for the session.
- guix-build: simplified to use $CLAUDE_CODE_SESSION_ID directly
instead of JSON parsing. Delegates the no-queue case to
ask-build-queue.
- CLAUDE.md: instructs to run ask-build-queue before any prompt that
looks like it will modify code.
Jakub Czajka [Mon, 22 Jun 2026 08:56:24 +0000 (10:56 +0200)]
[home] Use guix repl as the Geiser Guile REPL backend.
Set geiser-guile-binary to ("guix" "repl") so the Geiser REPL
starts inside the Guix execution environment, giving it access to all
Guix-installed Guile libraries.
Jakub Czajka [Sun, 21 Jun 2026 13:43:30 +0000 (15:43 +0200)]
[home] Add desktop notification hooks for Claude Code.
Send dunstify notifications on permission_prompt and idle_prompt
events via a shell script alongside the existing guix-check hook.
Uses a single Notification matcher entry in project settings.json
referenced via CLAUDE_PROJECT_DIR.
Jakub Czajka [Sat, 20 Jun 2026 22:39:24 +0000 (00:39 +0200)]
[home] Introduce Claude Code settings.json installed via Guix home.
- Add claude/.config/claude/settings.json with model overrides, max
- effort and apiKeyHelper wired to pass.
- Add conf/home/claude.scm service module bundling the claude-code
package with its dotfile.
- Wire claude-service into home.scm, replacing the raw claude-code
package.
Jakub Czajka [Sat, 20 Jun 2026 22:38:14 +0000 (00:38 +0200)]
[emacs] Add geiser-guile and flymake-guile for Scheme editing.
Configure geiser-guile and flymake-guile in conf-lisp.el, gated on the
guile binary being present for portability. Document the Lisp/Scheme
ecosystem and the environment variables set in .dir-locals.el.
Jakub Czajka [Sat, 20 Jun 2026 21:44:28 +0000 (23:44 +0200)]
[home] Fix duplicate service type conflict in home reconfigure.
home-symlink-service-type was named 'home-profile', colliding with
the built-in home-profile-service-type. Additionally, both
profile-service (bash.scm) and channels-service (guix.scm) directly
instantiated home-symlink-service-type — but Guix allows only one
direct (service <type> ...) per service type across the entire service
graph.
Changes:
- symlink.scm: Rename service type from 'home-profile' to
'home-symlink', reflecting its actual purpose.
- bash.scm: Route profile-service through home-program-service-type
(which extends home-symlink-service-type via service-extension)
instead of directly instantiating it. Remove unused
(conf home symlink) import.
- guix.scm: Same for channels-service. Switch import from
(conf home symlink) to (conf home program).
Service extensions can be merged by Guix; direct instantiations
cannot, hence the "more than one target service" error.
Jakub Czajka [Sat, 20 Jun 2026 21:40:24 +0000 (23:40 +0200)]
[home] Install Claude Code.
Introduce a Guix package for the upstream Claude Code binary. The
binary is prebuilt for FHS systems, so wrap it in a shell script that
sets LD_LIBRARY_PATH to Guix store paths and invokes it via ld-linux.
Set CLAUDE_CONFIG_DIR to store its configuration under ~/.config/claude
instead of ~/.claude. Document manual version-update instructions in
the README.
Jakub Czajka [Sat, 20 Jun 2026 20:58:16 +0000 (22:58 +0200)]
[emacs] Set Guile environment variables in dir-locals.
.dir-locals.el now sets GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH
so that Emacs can compile Guile files with guild compile. TAGS file is
no longer necessary as geiser provides references.
Jakub Czajka [Sun, 12 May 2024 10:54:23 +0000 (12:54 +0200)]
[system] Explicly disable Wayland.
Accordion to documentation, `(wayland? #f)` is the default
setting. However, Guix installed Xwayland which broke the
system. By disabling Wayland explicitly Guix returned to Xorg.