[Nix-dev] nixos-container update: Strange Behavior

Moritz Ulrich moritz at tarn-vedra.de
Wed Apr 30 21:09:25 CEST 2014


Hello!

I finally got around to play with NixOS' Containers. I'm sure they will
be a very useful tool in the future.

However, I seem to have a small issue when using them in an imperative
way:

1) Create and start a new container as described in "Imperative container
management"

2) Edit /var/lib/containers/<name>/etc/nixos/configuration.nix on the
host.

3) run `nixos-container update <name>'.

This should - according to the manual - apply the changes I did in the
configuration.nix to the container. Instead, it reverts the
configuration.nix to the "basic" contents it had right after the
creation of the container.

Is this an issue in the manual, or is there anything wrong with my
approach? I'd really like to do it this way, opposed to the `--config'
approach to updating the container.


Another issue I see is that `nix-channel --update' in the container
doesn't work (it just never returns). So I also can't run
`nixos-rebuild' in the container itself.


Thanks,
Moritz Ulrich

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140430/aa544fa5/attachment.bin 


More information about the nix-dev mailing list