2013-07-22 04:07:17 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-01-31 03:28:11 -08:00
|
|
|
set -e
|
|
|
|
|
2014-01-30 14:00:41 -08:00
|
|
|
# Update and initialize our new configuration
|
2014-01-31 08:38:54 -08:00
|
|
|
nix-channel --remove nixos
|
|
|
|
nix-channel --add http://nixos.org/channels/nixos-unstable nixos
|
|
|
|
nixos-rebuild switch --upgrade
|
2013-07-22 04:07:17 -07:00
|
|
|
|
2014-01-31 08:38:54 -08:00
|
|
|
# Cleanup any previous generations and delete old packa
|
|
|
|
nix-collect-garbage -d
|
2013-07-22 04:07:17 -07:00
|
|
|
|