aRustyDev / aRustyDev/dotfiles
Fix darwin-rebuild PATH configuration
- Lingua principale
- Jupyter Notebook
- Stelle
- 1
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Summary
Resolved issue where `darwin-rebuild` command was not found after installation due to PATH configuration problems.
## Problem
- `/run/current-system/sw/bin` was not in user's PATH
- Nix-Darwin configurations were using `lib.mkForce` which prevented proper PATH merging
- User's .zshrc was not able to control final PATH ordering
## Solution
1. Removed all `lib.mkForce` usage from PATH configurations in:
- `cfs.nix`
- `personal.nix`
- `seneca.nix`
2. Updated `.zshrc` to properly configure PATH after nix-daemon.sh:
```bash
# Initialize path array from current PATH
path=(${(s/:/)PATH})
# Ensure darwin-rebuild is accessible
if [[ -d /run/current-system/sw/bin ]]; then
path=('/run/current-system/sw/bin' $path)
fi
```
## Key Learning
User shell configuration should have final control over PATH ordering. Nix should provide paths but not force ordering.
## Related
- This was discovered while working on MCP server module implementation
- Solution documented in `.claude/guides/lessons-learned-nix.md`
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina le configurazioni di PATH in cfs.nix, personal.nix e seneca.nix, quindi controlla le modifiche a .zshrc relative a nix-daemon.sh. Verifica che /run/current-system/sw/bin venga mantenuto in PATH e che darwin-rebuild sia disponibile dopo l’installazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- zsh
- Ambito
- devops
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 35/100