packer-nixos/scripts/postinstall.sh

13 lines
268 B
Bash
Raw Normal View History

#!/bin/sh
2014-01-31 03:28:11 -08:00
set -e
2014-02-01 12:04:09 -08:00
# rebuild (which should now use our nixpkgs)
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