You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Remove the `gc` command which inappropriately ran `nix-collect-garbage
-d`
- nixy uses `nix build --out-link`, not `nix profile`, so there are no
nixy-specific generations to GC
- Added FAQ entry in README explaining how to clean up Nix store
manually
- Bump version to 0.1.5
## Rationale
The `gc` command was problematic because:
1. It ran `nix-collect-garbage -d` which affects ALL Nix profiles
system-wide
2. nixy doesn't create its own profile generations (uses `--out-link`
instead)
3. Users expecting nixy-scoped cleanup got system-wide cleanup instead
Users who want to clean up unused Nix store paths can run
`nix-collect-garbage -d` directly.
## Test plan
- [x] Run cargo test (59 tests pass)
- [x] `nixy --help` no longer shows gc command
- [x] Documentation updated (README.md and README_ja.md)
Closes#21
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,6 @@ Packages are installed globally and available in all terminal sessions.
143
143
|`nixy search <query>`|| Search for packages |
144
144
|`nixy upgrade [input...]`|| Upgrade all inputs or specific ones |
145
145
|`nixy sync`|| Build environment from flake.nix (for new machines) |
146
-
|`nixy gc`|| Clean up old package versions |
147
146
148
147
### Profile Management
149
148
@@ -274,6 +273,15 @@ Packages with non-free licenses (e.g., `graphite-cli`, `slack`) are allowed by d
274
273
nixy install slack
275
274
```
276
275
276
+
**How do I clean up old Nix store paths?**
277
+
nixy doesn't provide a garbage collection command because it uses `nix build --out-link` instead of `nix profile`. To clean up unused Nix store paths, use the standard Nix command directly:
278
+
279
+
```bash
280
+
nix-collect-garbage -d
281
+
```
282
+
283
+
Note: This will clean up ALL unused Nix profiles and store paths on your system, not just nixy-related ones.
0 commit comments