2012-12-24 19:02:03 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Remove VirtualBox Guest Additions ISO that the Veewee put in our
|
|
|
|
# home dir
|
|
|
|
|
|
|
|
rm -f ~/*.iso
|
|
|
|
|
|
|
|
# Install chef & puppet
|
|
|
|
|
|
|
|
su - vagrant -c 'gem install chef puppet --user-install \
|
|
|
|
--bindir=$HOME/bin --no-rdoc --no-ri'
|
|
|
|
|
2013-01-18 09:27:05 -08:00
|
|
|
# Make sure we are totally up to date
|
2012-12-24 19:02:03 -08:00
|
|
|
|
|
|
|
nixos-rebuild --upgrade switch
|
|
|
|
|
|
|
|
# Cleanup any previous generations and delete old packages that can be
|
|
|
|
# pruned.
|
|
|
|
|
2013-01-18 09:27:05 -08:00
|
|
|
for x in `seq 0 2` ; do
|
2012-12-24 19:02:03 -08:00
|
|
|
nix-env --delete-generations old
|
|
|
|
nix-collect-garbage -d
|
|
|
|
done
|
|
|
|
|
|
|
|
# Zero out the disk (for better compression)
|
|
|
|
|
|
|
|
dd if=/dev/zero of=/EMPTY bs=1M
|
|
|
|
rm -rf /EMPTY
|