···150 source = config.system.build.toplevel + "/init";
151 target = "/sbin/init";
152 }
153+ # Technically this is not required for lxc, but having also make this configuration work with systemd-nspawn.
154+ # Nixos will setup the same symlink after start.
155+ {
156+ source = config.system.build.toplevel + "/etc/os-release";
157+ target = "/etc/os-release";
158+ }
159 ];
160161 extraCommands = "mkdir -p proc sys dev";