Merge pull request #211098 from Mic92/lxc-container

nixos/lxc-container: fix compatibility with systemd-nspawn

authored by Lassulus and committed by GitHub 14c48f98 2bb560b3

+6
+6
nixos/modules/virtualisation/lxc-container.nix
··· 150 150 source = config.system.build.toplevel + "/init"; 151 151 target = "/sbin/init"; 152 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 + } 153 159 ]; 154 160 155 161 extraCommands = "mkdir -p proc sys dev";