Skip to content

fix: NIX_PATH for nixos-rebuild and user sessions on Incus#8

Merged
ethannortharc merged 1 commit intomainfrom
fix/nixos-rebuild-nixpath
Mar 10, 2026
Merged

fix: NIX_PATH for nixos-rebuild and user sessions on Incus#8
ethannortharc merged 1 commit intomainfrom
fix/nixos-rebuild-nixpath

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

  • Set NIX_PATH explicitly to include the channel profile path so nixos-rebuild finds <nixpkgs/nixos> after nix-channel --update
  • Run interactive incus exec sessions as the non-root user with correct HOME and CWD
  • Make channel update interactive for visible progress

Test plan

  • devbox create --name test --tools go on Linux with Incus — nixos-rebuild should succeed
  • devbox shell should log in as user, not root
  • cargo test — all 67 tests pass

🤖 Generated with Claude Code

- Explicitly set NIX_PATH to include the channel profile path so
  nixos-rebuild can find <nixpkgs/nixos> after nix-channel --update
- Run interactive incus exec sessions as the non-root user (UID >= 1000)
  with correct HOME and /workspace as working directory
- Make channel update interactive so progress is visible

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit 99780f3 into main Mar 10, 2026
0 of 2 checks passed
ethannortharc pushed a commit that referenced this pull request Mar 12, 2026
…cached Incus image' (#8) from fix/cached-image-networking into main
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