nix-tests
nix-tests copied to clipboard
Minor adjustments
I also have the following user-data.yaml
#cloud-config
write_files:
- path: /root/install-nix.sh
content: |
#!/bin/bash
set -x
set -e
export USER=$(whoami)
export HOME=/root
wget http://zw3rk-pub-bucket.s3.amazonaws.com/nixos-system-x86_64-linux.tar.xz
tar -xf nixos-system-x86_64-linux.tar.xz
cp /root/.ssh/authorized_keys /ssh_pubkey
./kexec_nixos
runcmd:
- bash -l /root/install-nix.sh
though I'd prefer not to have to host the .tar.xz
at 400mb myself :-)