2013-07-22 04:07:17 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-01-31 03:28:11 -08:00
|
|
|
set -e
|
|
|
|
|
2014-02-02 18:32:28 -08:00
|
|
|
# Switch to non ssl channel as there are issues with certs
|
|
|
|
# TODO: fix this propperly by including the root certs.
|
2014-01-31 09:57:31 -08:00
|
|
|
nix-channel --remove nixos
|
|
|
|
nix-channel --add http://nixos.org/channels/nixos-unstable nixos
|
2014-01-31 08:38:54 -08:00
|
|
|
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
|
|
|
|