Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created April 30, 2016 15:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/efb0c87a59fff4653d5df928681094cc to your computer and use it in GitHub Desktop.
Save cleverca22/efb0c87a59fff4653d5df928681094cc to your computer and use it in GitHub Desktop.
[root@laptop:~]# nix-instantiate '<nixos>' -A system
waiting for the big garbage collector lock...
warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector
/nix/store/gjyr1f2mp052bdh4j6vxy95m8jl7s04w-nixos-system-laptop-16.09pre82105.7465bcd.drv
[clever@laptop:~]$ nix-copy-closure --to root@amd /nix/store/gjyr1f2mp052bdh4j6vxy95m8jl7s04w-nixos-system-laptop-16.09pre82105.7465bcd.drv
Password:
copying 241 missing paths (3.87 MiB) to ‘root@amd’...
[clever@amd-nixos:~]$ nix-copy-closure --to root@router /nix/store/gjyr1f2mp052bdh4j6vxy95m8jl7s04w-nixos-system-laptop-16.09pre82105.7465bcd.drv
copying 2140 missing paths (7.75 MiB) to ‘root@router’...
[root@router:~]# nix-store -r /nix/store/gjyr1f2mp052bdh4j6vxy95m8jl7s04w-nixos-system-laptop-16.09pre82105.7465bcd.drv -Q
these derivations will be built:
/nix/store/05wjs6klmsgbqrssm8rbyxmyk0j4fk4r-unit-network-online.target.drv
/nix/store/05z3dp66958rzqvcg0f7qs3880rbn2z2-unit-script.drv
...
/nix/store/z0jrl7phrj1x1d2m3hvr4b02wdxvym85-opengl-drivers.drv
/nix/store/gjyr1f2mp052bdh4j6vxy95m8jl7s04w-nixos-system-laptop-16.09pre82105.7465bcd.drv
these paths will be fetched (662.32 MiB download, 2833.19 MiB unpacked):
/nix/store/00wd5pg3iikpsz34xsq6ncif6yygv168-libSM-1.2.2-dev
/nix/store/00xrnp9a1yzgivbnxh8yw0xn4b8qimcx-libtiff-4.0.6-bin
...
/nix/store/zy7z9d7hp2spyna17v6scvgvm8jp7amy-quazip-0.7.1
/nix/store/zy85gsdwxynymzmjzyfhi0ndf7j8xm3d-perl-List-Compare-1.18
fetching path ‘/nix/store/k6f39nq3lxi9y6gb089vrwkq6mcz9h5b-linux-4.1.20’...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment