Re:The Nix project – Atomic upgrades, rollbacks and multi-us...
by yetfeo on Tuesday April 29, 2014 @07:25PM
(#7670599)
Do you have any tips on managing a nixpkgs clone vs using channels? How do you set it up to default to your clone for example?
[ Parent
| on HN ]
Re:The Nix project – Atomic upgrades, rollbacks and multi-us...
by ambrop7 on Wednesday April 30, 2014 @02:28AM
(#7671899)
I wrap the nixos-rebuild command into a script that sets a custom nixpkgs:
#!/bin/sh exec nixos-rebuild -I nixpkgs=/etc/nixos/nixpkgs "$@"
This itself works, but then you're probably still using channels for nix-env (user profiles). These need to be configured separately. Or maybe with NIX_PATH, I don't know since I don't use the user profiles feature.
After that, you just work with it like any git repo (presumably you, like git pull --rebase, git rebase -i...).