Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created September 19, 2018 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/6f314425bb3506315f83ebfd8dcafe56 to your computer and use it in GitHub Desktop.
Save grahamc/6f314425bb3506315f83ebfd8dcafe56 to your computer and use it in GitHub Desktop.
grahamc@Morbo> sudo nixos-container run test -- cat /etc/foo; echo "" /etc/nixos
the current time is: 1537396334
grahamc@Morbo> sudo nixos-rebuild switch --upgrade /etc/nixos
unpacking channels...
building Nix...
building the system configuration...
these derivations will be built:
/nix/store/0hpih5sdcsy1nj90xa1qk1xxim98923i-etc-foo.drv
/nix/store/jp42scgbidrl33dv2kx3ab04l224yl5g-etc.drv
/nix/store/vhaw84wyrcsiq9dylb60qlnkq45lfaa9-nixos-system-test-18.09beta302.9fa6a261fb2.drv
/nix/store/6kr3d7kw5h75csnsnr3isjmy6ycgz6sf-etc-test.conf.drv
/nix/store/b8mlswl1rnrk37kf1aazmhkc3l775h2p-unit-container-test.service.drv
/nix/store/nf6f007bczsr8m84njh821xig1g7xz92-system-units.drv
/nix/store/li13x8yvbnp7d67n3cj5clamqiw83rk0-etc.drv
/nix/store/kahxknchgzg52zxjwipkrfc1xn1rqk0h-nixos-system-Morbo-18.09beta302.9fa6a261fb2.drv
building '/nix/store/0hpih5sdcsy1nj90xa1qk1xxim98923i-etc-foo.drv'...
building '/nix/store/jp42scgbidrl33dv2kx3ab04l224yl5g-etc.drv'...
building '/nix/store/vhaw84wyrcsiq9dylb60qlnkq45lfaa9-nixos-system-test-18.09beta302.9fa6a261fb2.drv'...
building '/nix/store/6kr3d7kw5h75csnsnr3isjmy6ycgz6sf-etc-test.conf.drv'...
building '/nix/store/b8mlswl1rnrk37kf1aazmhkc3l775h2p-unit-container-test.service.drv'...
building '/nix/store/nf6f007bczsr8m84njh821xig1g7xz92-system-units.drv'...
building '/nix/store/li13x8yvbnp7d67n3cj5clamqiw83rk0-etc.drv'...
building '/nix/store/kahxknchgzg52zxjwipkrfc1xn1rqk0h-nixos-system-Morbo-18.09beta302.9fa6a261fb2.drv'...
activating the configuration...
setting up /etc...
...
reloading the following units: container@test.service
the following new units were started: mcelog.service
grahamc@Morbo> sudo nixos-container run test -- cat /etc/foo; echo "" /etc/nixos
the current time is: 1537396376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment