7d5b333dcd
This is a feature supported out of the box by upstream and allows the
incusd service to be restarted without impacting running
instances. While this does give up a bit of reproducibility, qemu and
lxc for example, there are clear benefits in allowing the host to
apply updates without impacting instances.
Modeled after the zabbly implementation: 2a67c3e260/systemd/incus-startup.service
This will now be the default.
27 lines
921 B
Nix
27 lines
921 B
Nix
{
|
|
system ? builtins.currentSystem,
|
|
config ? { },
|
|
pkgs ? import ../../.. { inherit system config; },
|
|
handleTestOn,
|
|
}:
|
|
{
|
|
container-legacy-init = import ./container.nix {
|
|
name = "container-legacy-init";
|
|
inherit system pkgs;
|
|
};
|
|
container-systemd-init = import ./container.nix {
|
|
name = "container-systemd-init";
|
|
inherit system pkgs;
|
|
extra = {
|
|
boot.initrd.systemd.enable = true;
|
|
};
|
|
};
|
|
incusd-options = import ./incusd-options.nix { inherit system pkgs; };
|
|
lxd-to-incus = import ./lxd-to-incus.nix { inherit system pkgs; };
|
|
openvswitch = import ./openvswitch.nix { inherit system pkgs; };
|
|
socket-activated = import ./socket-activated.nix { inherit system pkgs; };
|
|
storage = import ./storage.nix { inherit system pkgs; };
|
|
ui = import ./ui.nix { inherit system pkgs; };
|
|
virtual-machine = handleTestOn [ "x86_64-linux" ] ./virtual-machine.nix { inherit system pkgs; };
|
|
}
|