Integrated the flake container setup into the spawn script for systemd-nspawn. The trickiest part of this was ensuring the underlying per-container is built. With the .conf file created, running `nixos-container update` creates all the necessary per-container structure. We call this command at start to ensure the structure is created only if the per-container system isnt there. Note: This also means the flake gets updated to branch HEAD when the container is started for the first time.
41 KiB
41 KiB