Skip to content

Move package.nix to example (vibe-kanban) - #31

Merged
impactaky merged 4 commits into
mainfrom
impactaky/adad-move-package-nix
Dec 28, 2025
Merged

Move package.nix to example (vibe-kanban)#31
impactaky merged 4 commits into
mainfrom
impactaky/adad-move-package-nix

Conversation

@impactaky

Copy link
Copy Markdown
Owner

/openspec:proposal

Move package.nix to examples directory to avoid conflict with user change.

Instead, we should add instruction in README

All tasks for **move-packages-nix-to-example** have been completed:

### Changes Made

**In `shelffiles/` directory:**

| File | Change |
|------|--------|
| `example/packages.nix` | Created new template file with example packages |
| `flake.nix` | Updated to check for root `packages.nix` first, fallback to `example/packages.nix` |
| `.gitignore` | Added `/packages.nix` to prevent tracking user customizations |
| `README.md` | Updated instructions to copy example to root before customizing |
| `packages.nix` | Removed from git tracking (file still exists for existing users) |

### Validation Results

- `nix build --dry-run` works with only `example/packages.nix` present
- `nix build --dry-run` works with root `packages.nix` present (uses it in preference)
- All Docker-based tests pass (3/3 tests ok)

### Next Steps

The changes are ready to be staged and committed. Would you like me to commit these changes?
- `.gitignore` no longer includes `/packages.nix`
- The local `packages.nix` file is untracked (as expected - it's a user file)
- Users can track their own `packages.nix` in their forks without conflicts
- `example/packages.nix` is just a template for copy/paste
- `flake.nix` simply imports `./packages.nix` (no fallback logic)
- Users must copy the example before building
- `packages.nix` is deleted from git (moved to `example/packages.nix`)
- `example/packages.nix` has example comments for users to copy
@impactaky
impactaky merged commit 0a2d0fb into main Dec 28, 2025
2 checks passed
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