packer-nixos/scripts/postinstall.sh

15 lines
299 B
Bash
Raw Normal View History

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