Use NixOS release 13.10 - build is still not working though

This commit is contained in:
Jonas Pfenniger 2013-11-09 15:01:41 +00:00
parent 007c1c5f64
commit 5dd24ec9fb
2 changed files with 12 additions and 42 deletions

View file

@ -6,7 +6,7 @@
"<wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait>", "<wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait>",
"root<wait>", "root<wait>",
"<enter><wait>", "<enter><wait>",
"stop sshd<wait>", "stop sshd",
"<enter><wait>", "<enter><wait>",
"fdisk /dev/sda<wait>", "fdisk /dev/sda<wait>",
"<enter><wait>", "<enter><wait>",
@ -24,55 +24,33 @@
"<enter><wait>", "<enter><wait>",
"nixos-option --install<wait>", "nixos-option --install<wait>",
"<enter><wait>", "<enter><wait>",
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix \u0026\u0026<wait>", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix &&<wait>",
"<enter><wait>", "<enter><wait>",
"nixos-install \u0026\u0026<wait>", "nixos-install &&<wait>",
"<enter><wait>", "<enter><wait>",
"reboot<wait>", "reboot<wait>",
"<enter><wait>" "<enter><wait>"
], ],
"boot_wait": "5s", "guest_additions_mode": "disable",
"disk_size": 20400, "guest_os_type": "Linux",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Linux26",
"http_directory": "http", "http_directory": "http",
"iso_checksum": "b1a78fc1b72ea1a19957cb1422817ab6", "iso_checksum": "d0e0a64fe9a5f3f946e6f9fe0b846e70",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"iso_url": "http://nixos.org/releases/nixos/nixos-13.07pre4871_18de9f6-3c35dae/nixos-minimal-13.07pre4871_18de9f6-3c35dae-i686-linux.iso", "iso_url": "http://nixos.org/releases/nixos/13.10/nixos-13.10.35445.be4e850/nixos-minimal-13.10.35445.be4e850-x86_64-linux.iso",
"shutdown_command": "sudo shutdown -h now", "shutdown_command": "sudo shutdown -h now",
"ssh_password": "vagrant", "ssh_password": "vagrant",
"ssh_port": 22, "ssh_port": 22,
"ssh_username": "vagrant", "ssh_username": "vagrant",
"ssh_wait_timeout": "10000s", "ssh_wait_timeout": "10000s",
"type": "virtualbox", "type": "virtualbox",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"256"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version" "virtualbox_version_file": ".vbox_version"
} }
], ],
"provisioners": [ "provisioners": [
{ {
"override": { "type": "shell",
"virtualbox": { "execute_command": "sudo '{{.Path}}'",
"execute_command": "sudo '{{.Path}}'" "script": "scripts/postinstall.sh"
}
},
"scripts": [
"scripts/postinstall.sh"
],
"type": "shell"
} }
] ]
} }

View file

@ -1,17 +1,9 @@
#!/bin/sh #!/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'
# Make sure we are totally up to date # Make sure we are totally up to date
nixos-rebuild --upgrade switch nix-channel --add http://nixos.org/channels/nixos-13.10 nixos
nixos-rebuild switch --upgrade
# Cleanup any previous generations and delete old packages that can be # Cleanup any previous generations and delete old packages that can be
# pruned. # pruned.