nix CLAUDE.md
1.4 kB · 29 lines
Markdown
at main

format code with something like fish -c 'nix fmt -- (jj file list)'

if asked, setup jj workspaces for separate features somewhere in the following format:

  • $CODE/workspaces/$REPO_NAME/$WORKSPACE_NAME
    • $CODE is the related code directory, usually ~/../code (since $HOME is /home/daniel/.home for clutter reasons and the code directory is usually /home/daniel/code)
    • $REPO_NAME would be nix in this case, so going from code/nix to code/workspaces/nix should be obvious
    • $WORKSPACE_NAME should probably just be the branch or bookmark name

Dotfiles Convention #

Prefer editing native dotfiles in dotfiles/ directly rather than using home-manager programs.* options for configuration content. Home-manager is used to enable programs and wire up integrations, but actual config content lives in dotfiles/ and is symlinked in via mkOutOfStoreSymlink so it can be edited live without rebuilding.

Important: Always symlink individual files, never whole directories. Directory-level mkOutOfStoreSymlink causes home-manager to copy contents into a read-only nix store path, preventing mutable files from coexisting in the same config directory.

Forgejo (tea CLI) #

Remote is hosted on Forgejo. Use tea for issues/PRs:

tea issue list
tea issue create -t "title" -d "description"
tea pr list
tea pr create              # interactive
tea pr merge <id>