Rename everything into nixbox

This commit is contained in:
zimbatm 2013-11-27 20:48:07 +00:00
parent d29caed78e
commit 711d906b1f
4 changed files with 20 additions and 11 deletions

View file

@ -7,11 +7,11 @@ ISO_URL_64=http://nixos.org/releases/nixos/13.10/nixos-13.10.35455.45219b9/nixos
ISO_MD5_64=fbac8c11661028e6f9c4ec293e1329e1 ISO_MD5_64=fbac8c11661028e6f9c4ec293e1329e1
GUEST_OS_64=Linux_64 GUEST_OS_64=Linux_64
all: nixos32-template.json nixos64-template.json all: nixbox32-template.json nixbox64-template.json
nixos32-template.json: nixos-template.json.orig nixbox32-template.json: nixbox-template.json.orig
cat $< | sed -e 's|ISO_URL|$(ISO_URL_32)|g' -e 's|ISO_MD5|$(ISO_MD5_32)|g' -e 's|GUEST_OS|$(GUEST_OS_32)|g' > $@ cat $< | sed -e 's|ISO_URL|$(ISO_URL_32)|g' -e 's|ISO_MD5|$(ISO_MD5_32)|g' -e 's|GUEST_OS|$(GUEST_OS_32)|g' -e 's|NIXBOX|nixbox32|g' > $@
nixos64-template.json: nixos-template.json.orig nixbox64-template.json: nixbox-template.json.orig
cat $< | sed -e 's|ISO_URL|$(ISO_URL_64)|g' -e 's|ISO_MD5|$(ISO_MD5_64)|g' -e 's|GUEST_OS|$(GUEST_OS_64)|g' > $@ cat $< | sed -e 's|ISO_URL|$(ISO_URL_64)|g' -e 's|ISO_MD5|$(ISO_MD5_64)|g' -e 's|GUEST_OS|$(GUEST_OS_64)|g' -e 's|NIXBOX|nixbox64|g' > $@

View file

@ -16,7 +16,7 @@
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>", "mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
"mount LABEL=nixos /mnt<enter><wait>", "mount LABEL=nixos /mnt<enter><wait>",
"nixos-generate-config --root /mnt<enter><wait>", "nixos-generate-config --root /mnt<enter><wait>",
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|NIXBOX|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
"nixos-install && reboot<enter>" "nixos-install && reboot<enter>"
], ],
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
@ -41,7 +41,10 @@
} }
], ],
"post-processors": [ "post-processors": [
{ "type": "vagrant" } {
"type": "vagrant",
"output": "NIXBOX-{{.Provider}}.box"
}
] ]
} }

View file

@ -16,7 +16,7 @@
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>", "mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
"mount LABEL=nixos /mnt<enter><wait>", "mount LABEL=nixos /mnt<enter><wait>",
"nixos-generate-config --root /mnt<enter><wait>", "nixos-generate-config --root /mnt<enter><wait>",
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|nixbox32|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
"nixos-install && reboot<enter>" "nixos-install && reboot<enter>"
], ],
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
@ -41,7 +41,10 @@
} }
], ],
"post-processors": [ "post-processors": [
{ "type": "vagrant" } {
"type": "vagrant",
"output": "nixbox32-{{.Provider}}.box"
}
] ]
} }

View file

@ -16,7 +16,7 @@
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>", "mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
"mount LABEL=nixos /mnt<enter><wait>", "mount LABEL=nixos /mnt<enter><wait>",
"nixos-generate-config --root /mnt<enter><wait>", "nixos-generate-config --root /mnt<enter><wait>",
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|nixbox64|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
"nixos-install && reboot<enter>" "nixos-install && reboot<enter>"
], ],
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
@ -41,7 +41,10 @@
} }
], ],
"post-processors": [ "post-processors": [
{ "type": "vagrant" } {
"type": "vagrant",
"output": "nixbox64-{{.Provider}}.box"
}
] ]
} }