I encountered the same and assumed it was expected - not sure why exactly though.
system.copySystemConfiguration = true;
config would normally handle that but it doesn’t work, config files aren’t copied
Some related discussion on this post:
Can you try the following:
- build your image
- in your container / VM, run
sudo -i nix-channel --update
, by default they’re not which would cause future updates from the container to fail - create a
configuration.nix
with ONLY additional packages you want to add (don’t copy the OGconfiguration.nix
for the container itself)
=> OG build will then be the base, the newconfiguration.nix
inside the container will add config on top of that OG build so you won’t lose what’s already setup and installed from the initial container build