+10
-44
nixos/modules/virtualisation/lxc-container.nix
+10
-44
nixos/modules/virtualisation/lxc-container.nix
···-Whether this container is configured as a nested container. On LXD containers this is recommended-Whether this LXC container will be running as a privileged container or not. If set to `true` then-additional configuration will be applied to the `systemd` instance running within the container as···-systemd.additionalUpstreamSystemUnits = lib.mkIf cfg.nestedContainer ["systemd-udev-trigger.service"];-# https://github.com/lxc/distrobuilder/blob/05978d0d5a72718154f1525c7d043e090ba7c3e0/distrobuilder/main.go#L630
+28
nixos/tests/incus/container.nix
+28
nixos/tests/incus/container.nix
···assert meminfo_bytes == "125000 kB", f"Wrong amount of memory reported from /proc/meminfo, want: '125000 kB', got: '{meminfo_bytes}'"+machine.succeed("incus exec container test -- -e /run/systemd/system/service.d/zzz-lxc-service.conf")+machine.fail("incus exec container test -- -e /run/systemd/system/service.d/zzz-lxc-service.conf")+target = machine.succeed("incus exec container readlink -- -f /run/systemd/system/systemd-binfmt.service").strip()+assert target == "/dev/null", "lxc generator did not correctly mask /run/systemd/system/systemd-binfmt.service"+machine.succeed("incus exec container test -- -e /run/systemd/system/service.d/zzz-lxc-service.conf")
+16
-23
pkgs/tools/virtualization/distrobuilder/default.nix
+16
-23
pkgs/tools/virtualization/distrobuilder/default.nix
······-url = "https://github.com/lxc/distrobuilder/commit/5346bcc77dd7f141a36a8da851f016d0b929835e.patch";-url = "https://github.com/lxc/distrobuilder/commit/2c8cbfbf603e7446efce9f30812812336ccf4f2c.patch";# tests require a local keyserver (mkg20001/nixpkgs branch distrobuilder-with-tests) but gpg is currently broken in tests···
+19
pkgs/tools/virtualization/distrobuilder/generator.nix
+19
pkgs/tools/virtualization/distrobuilder/generator.nix
···+wrapProgram $out/lib/systemd/system-generators/lxc --prefix PATH : ${lib.makeBinPath [coreutils findutils gnugrep systemd]}:${systemd}/lib/systemd
+113
pkgs/tools/virtualization/distrobuilder/nixos-generator.patch
+113
pkgs/tools/virtualization/distrobuilder/nixos-generator.patch
···+-# fix_nm_link_state forces the network interface to a DOWN state ahead of NetworkManager starting up+- ln -sf /run/systemd/system/network-device-down.service /run/systemd/system/default.target.wants/network-device-down.service+# fix_systemd_udev_trigger overrides the systemd-udev-trigger.service to match the latest version+@@ -222,11 +162,6 @@ ACTION=="add|change|move", ENV{ID_NET_DRIVER}=="veth", ENV{INTERFACE}=="eth[0-9]