packer-nixos/scripts/postinstall.sh

11 lines
177 B
Bash
Raw Normal View History

#!/bin/sh
2014-01-31 03:28:11 -08:00
set -e
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