Skip to content

Commit

Permalink
regenerate iso_urls.json, nixos-i686.json, and nixos-x86_64.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cdituri committed Apr 13, 2020
1 parent 5dec61f commit 7b18305
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 230 deletions.
8 changes: 4 additions & 4 deletions iso_urls.json
@@ -1,10 +1,10 @@
{
"x86_64": {
"iso_url": "https://releases.nixos.org/nixos/19.09/nixos-19.09.741.dbad7c7d59f/nixos-minimal-19.09.741.dbad7c7d59f-x86_64-linux.iso",
"iso_sha256": "3379a53f998ca7bdc9b775a06d81275df7bd2c002e7d0fa0a3036cad9c3b7aca"
"iso_url": "https://channels.nixos.org/nixos-19.09/latest-nixos-minimal-x86_64-linux.iso",
"iso_sha256": "5fbd8de5978fa9c3c025da2b449bf94c493888ec3b6809b9eac06a5eb01b535a"
},
"i686": {
"iso_url": "https://releases.nixos.org/nixos/19.09/nixos-19.09.741.dbad7c7d59f/nixos-minimal-19.09.741.dbad7c7d59f-i686-linux.iso",
"iso_sha256": "c68dc1f70814d7194280f0ee5e39368408146c31757b39ec97d1f2d531b0b4b0"
"iso_url": "https://channels.nixos.org/nixos-19.09/latest-nixos-minimal-i686-linux.iso",
"iso_sha256": "bb3f09dd166ce23528cd309ee78351bbc6c3bffc6da2720c96dc8d0b26db0dce"
}
}
256 changes: 143 additions & 113 deletions nixos-i686.json
@@ -1,113 +1,143 @@
{
"variables": {
"disk_size": "10240",
"memory": "1024"
},
"builders": [
{
"boot_wait": "45s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "virtualbox-iso",
"iso_url": "https://releases.nixos.org/nixos/19.09/nixos-19.09.741.dbad7c7d59f/nixos-minimal-19.09.741.dbad7c7d59f-i686-linux.iso",
"iso_checksum": "c68dc1f70814d7194280f0ee5e39368408146c31757b39ec97d1f2d531b0b4b0",
"guest_additions_mode": "disable",
"format": "ova",
"guest_os_type": "Linux",
"disk_size": "{{ user `disk_size` }}",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{ user `memory` }}",
"--vram",
"128",
"--clipboard",
"bidirectional"
]
]
},
{
"boot_wait": "45s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "qemu",
"iso_url": "https://releases.nixos.org/nixos/19.09/nixos-19.09.741.dbad7c7d59f/nixos-minimal-19.09.741.dbad7c7d59f-i686-linux.iso",
"iso_checksum": "c68dc1f70814d7194280f0ee5e39368408146c31757b39ec97d1f2d531b0b4b0",
"disk_interface": "virtio-scsi",
"disk_size": "{{ user `disk_size` }}",
"format": "qcow2",
"qemuargs": [
[
"-m",
"{{ user `memory` }}"
]
]
},
{
"boot_wait": "45s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "vmware-iso",
"iso_url": "https://releases.nixos.org/nixos/19.09/nixos-19.09.741.dbad7c7d59f/nixos-minimal-19.09.741.dbad7c7d59f-i686-linux.iso",
"iso_checksum": "c68dc1f70814d7194280f0ee5e39368408146c31757b39ec97d1f2d531b0b4b0",
"memory": "{{ user `memory` }}",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "Linux"
}
],
"provisioners": [
{
"execute_command": "sudo su -c '{{ .Vars }} {{.Path}}'",
"type": "shell",
"script": "./scripts/install.sh"
}
],
"post-processors": [
[
{
"type": "vagrant",
"keep_input_artifact": false,
"only": [
"virtualbox-iso",
"qemu"
],
"output": "nixos-19.09-{{.Provider}}-i686.box"
}
]
]
}
{
"variables": {
"disk_size": "10240",
"memory": "1024"
},
"builders": [
{
"boot_wait": "45s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "virtualbox-iso",
"iso_url": "https://channels.nixos.org/nixos-19.09/latest-nixos-minimal-i686-linux.iso",
"iso_checksum": "bb3f09dd166ce23528cd309ee78351bbc6c3bffc6da2720c96dc8d0b26db0dce",
"guest_additions_mode": "disable",
"format": "ova",
"guest_os_type": "Linux",
"disk_size": "{{ user `disk_size` }}",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{ user `memory` }}",
"--vram",
"128",
"--clipboard",
"bidirectional"
]
]
},
{
"boot_wait": "45s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "qemu",
"iso_url": "https://channels.nixos.org/nixos-19.09/latest-nixos-minimal-i686-linux.iso",
"iso_checksum": "bb3f09dd166ce23528cd309ee78351bbc6c3bffc6da2720c96dc8d0b26db0dce",
"disk_interface": "virtio-scsi",
"disk_size": "{{ user `disk_size` }}",
"format": "qcow2",
"qemuargs": [
[
"-m",
"{{ user `memory` }}"
]
]
},
{
"boot_wait": "60s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo nix-env -f '<nixpkgs>' -iA linuxPackages.hyperv-daemons<enter><wait10>",
"sudo $(find /nix/store -executable -iname 'hv_kvp_daemon' | head -n 1)<enter><wait10>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "hyperv-iso",
"generation": 1,
"iso_url": "https://channels.nixos.org/nixos-19.09/latest-nixos-minimal-i686-linux.iso",
"iso_checksum": "bb3f09dd166ce23528cd309ee78351bbc6c3bffc6da2720c96dc8d0b26db0dce",
"memory": "{{ user `memory` }}",
"disk_size": "{{ user `disk_size` }}",
"enable_secure_boot": false,
"switch_name": "Default Switch",
"differencing_disk": true,
"communicator": "ssh",
"ssh_timeout": "1h"
},
{
"boot_wait": "45s",
"boot_command": [
"echo http://{{ .HTTPIP }}:{{ .HTTPPort}} > .packer_http<enter>",
"mkdir -m 0700 .ssh<enter>",
"curl $(cat .packer_http)/install_rsa.pub > .ssh/authorized_keys<enter>",
"sudo systemctl start sshd<enter>"
],
"http_directory": "scripts",
"iso_checksum_type": "sha256",
"shutdown_command": "sudo shutdown -h now",
"ssh_private_key_file": "./scripts/install_rsa",
"ssh_port": 22,
"ssh_username": "nixos",
"headless": true,
"type": "vmware-iso",
"iso_url": "https://channels.nixos.org/nixos-19.09/latest-nixos-minimal-i686-linux.iso",
"iso_checksum": "bb3f09dd166ce23528cd309ee78351bbc6c3bffc6da2720c96dc8d0b26db0dce",
"memory": "{{ user `memory` }}",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "Linux"
}
],
"provisioners": [
{
"execute_command": "sudo su -c '{{ .Vars }} {{.Path}}'",
"type": "shell",
"script": "./scripts/install.sh"
}
],
"post-processors": [
[
{
"type": "vagrant",
"keep_input_artifact": false,
"only": [
"virtualbox-iso",
"qemu",
"hyperv-iso"
],
"output": "nixos-19.09-{{.Provider}}-i686.box"
}
]
]
}

0 comments on commit 7b18305

Please sign in to comment.