packer-nixos/scripts/postinstall.sh
2014-02-01 20:04:09 +00:00

13 lines
268 B
Bash
Executable file

#!/bin/sh
set -e
# 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