packer-nixos/scripts/postinstall.sh

14 lines
338 B
Bash
Raw Normal View History

#!/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.
nix-channel --remove nixos
nix-channel --add http://nixos.org/channels/nixos-unstable nixos
nixos-rebuild switch --upgrade
# Cleanup any previous generations and delete old packa
nix-collect-garbage -d