Skip to content

Instantly share code, notes, and snippets.

@dmjio

dmjio/output.sh Secret

Last active July 13, 2018 13:52
Show Gist options
  • Save dmjio/1ab0d682b1b3e0e2e3993dce97907bdf to your computer and use it in GitHub Desktop.
Save dmjio/1ab0d682b1b3e0e2e3993dce97907bdf to your computer and use it in GitHub Desktop.
~/Desktop/nyan-0.2 » nix-build /Users/dmj/.cache/nix-linuxkit-builder/example.nix dmj@Davids-MacBook-Pro
these derivations will be built:
/nix/store/h381xgbnjva8lblsnw28s5j5ww57ljsy-hello-1531489534.drv
these paths will be fetched (20.69 MiB download, 218.27 MiB unpacked):
/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz
/nix/store/3y0wxpkxzs6yz73iw35d17qr1wp4p2i4-stdenv-linux
/nix/store/487kalv9jm8g5fs3bm5yhby63mcpnbfv-gcc-wrapper-7.3.0
/nix/store/4wp1i871w908b5vgbd75sw4hzhwzazs5-expand-response-params
/nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30
/nix/store/w8c8szci956bi10m6fh8ad802qij6w3h-binutils-wrapper-2.30
copying path '/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz' from 'https://cache.nixos.org'...
copying path '/nix/store/4wp1i871w908b5vgbd75sw4hzhwzazs5-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30' from 'https://cache.nixos.org'...
copying path '/nix/store/w8c8szci956bi10m6fh8ad802qij6w3h-binutils-wrapper-2.30' from 'https://cache.nixos.org'...
copying path '/nix/store/487kalv9jm8g5fs3bm5yhby63mcpnbfv-gcc-wrapper-7.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/3y0wxpkxzs6yz73iw35d17qr1wp4p2i4-stdenv-linux' from 'https://cache.nixos.org'...
unable to open SSH connection to 'ssh://nix-linuxkit': cannot connect to 'nix-linuxkit'; trying other available machines...
error: a 'x86_64-linux' is required to build '/nix/store/h381xgbnjva8lblsnw28s5j5ww57ljsy-hello-1531489534.drv', but I am a 'x86_64-darwin'
~/Desktop/nyan-0.2 » tree ~/.cache/nix-linuxkit-builder/ dmj@Davids-MacBook-Pro
/Users/dmj/.cache/nix-linuxkit-builder/
|-- configure
|-- example.nix
|-- gcroot -> /nix/store/n30zl4bl4k7ixr4nbdzks31q26mgc9dm-daemon.plist
|-- keys
| |-- client
| |-- client.pub
| |-- known_host
| |-- ssh_host_ecdsa_key
| `-- ssh_host_ecdsa_key.pub
`-- server-config.tar
~/Desktop/nyan-0.2 » nnix-linuxkit-configure dmj@Davids-MacBook-Pro
Generating public/private rsa key pair.
Your identification has been saved in client.
Your public key has been saved in client.pub.
The key fingerprint is:
SHA256:gznQy1F+NKptxNcZzJLVtHtamtkc64Q9dI7WIMTPtoA Nix LinuxKit Builder, Client
The key's randomart image is:
+---[RSA 2048]----+
| . o=oo. |
| . + oo+oo.. |
| . o = o.= . |
| o O o o o . |
| B S E o *o+|
| o . ++/+|
| .O==|
| .o .|
| . |
+----[SHA256]-----+
Generating public/private ecdsa key pair.
Your identification has been saved in ssh_host_ecdsa_key.
Your public key has been saved in ssh_host_ecdsa_key.pub.
The key fingerprint is:
SHA256:xFBWBByoYPkx2bjkAzUZ8SRrW8+a861v27CiVlsY018 Nix LinuxKit Builder, Server
The key's randomart image is:
+---[ECDSA 256]---+
| o*Bo+==o |
| = B*o+. |
| . *o=o o. |
| .*o +o . E |
| .. S+ . . |
| oo . . |
| +. o. |
| .oo..+ |
| ...o==.. |
+----[SHA256]-----+
/Users/dmj/.cache/nix-linuxkit-builder/gcroot
Setting up /var/root//.ssh/nix-linuxkit-ssh-config...
Password:
Adding the SSH configuration (/var/root//.ssh/nix-linuxkit-ssh-config) to /var/root//.ssh/config...
Adding the Nix Machines configuration (/etc/nix/machines) to /etc/nix/machines...
ssh://nix-linuxkit x86_64-linux /Users/dmj/.cache/nix-linuxkit-builder/keys/client 1 1 kvm,big-parallel
Ok, try it out!
nix-build /Users/dmj/.cache/nix-linuxkit-builder/example.nix
If this doesn't work right away, maybe wait a 10+ seconds and try again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment