+1
doc/builders/images.xml
+1
doc/builders/images.xml
+81
doc/builders/images/portableservice.section.md
+81
doc/builders/images/portableservice.section.md
···+Portable Services are a delivery method for system services that uses two specific features of container management:+The above example will build an squashfs archive image in `result/$pname_$version.raw`. The image will contain the+file system structure as required by the portable service specification, and a subset of the Nix store with all the+`units` must be a list of derivations, and their names must be prefixed with the service name (`"demo"` in this case).+Are added to the `/etc/os-release` in the image and are shown by the portable services tooling.+A list of attribute sets {object, symlink}. Symlinks will be created in the root filesystem of the image to+A list of additional derivations to be included in the image Nix store, as-is. Defaults to an empty list.+Defaults to `pkgs.squashfsTools`, allows you to override the package that provides `mksquashfs`.+Once the image is created, and deployed on a host in `/var/lib/portables/`, you can attach the image and run the service. As root run:+See the [man page](https://www.freedesktop.org/software/systemd/man/portablectl.html) of `portablectl` for more info on its usage.