Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

virtualisation.quadlet.enable

Whether to enable quadlet.

Type: boolean

Default:

false

Example:

true

virtualisation.quadlet.package

The package providing the quadlet generator executable

Type: package

Default:

pkgs.callPackage ./pkgs/quadlet/package.nix { }

virtualisation.quadlet.autoPrune.enable

Whether to enable a timer that removes every image that no container uses, such as previous versions and builds. Unlike podman system prune, it leaves alone the networks of Quadlet units. The image of a stopped unit is pulled or loaded again when it starts.

Type: boolean

Default:

false

Example:

true

virtualisation.quadlet.autoPrune.startAt

The OnCalendar= schedule of the auto prune

Type: string

Default:

"weekly"

virtualisation.quadlet.autoUpdate.enable

Whether to enable the quadlet-update timer and service, which runs podman auto-update to update the containers labeled with AutoUpdate= and then prunes dangling images. On NixOS, a user manager runs it only for the owners of rootless units.

Type: boolean

Default:

false

Example:

true

virtualisation.quadlet.autoUpdate.startAt

The OnCalendar= schedule of the auto update

Type: string

Default:

"*-*-* 00:00:00"

virtualisation.quadlet.autoUpdate.timeout

The TimeoutStartSec= of a run, which pulls every image, so that a hanging pull cannot block the next runs

Type: string

Default:

"15min"

Example:

"2h"

virtualisation.quadlet.bundle.package

The rootful Quadlet units of this system with the units of autoUpdate and autoPrune, named after name, the sockets and the timers as files for a host without Nix, with podman 5 and systemd, below the root they belong to. Its install.sh copies them into place, starts them, restarts those it changed and retires those the previous bundle had but this one lacks, and the uninstall.sh it installs into assetDirectory removes them. Both take the root of an offline host, such as a mounted image, as an optional argument.

Type: package (read only)

Default: the bundle of this system’s rootful units

virtualisation.quadlet.bundle.assetDirectory

The directory of the store paths that the units of the bundle reference, which the bundle owns and its uninstallation removes

Type: absolute path not in the Nix store

Default:

"/usr/local/lib/${config.virtualisation.quadlet.bundle.name}"

virtualisation.quadlet.bundle.hostTools

The executables of the host, by their path there, that replace the store executables the units reference instead of being bundled. systemctl and podman map to /usr/bin by default.

Type: attribute set of string

Default:

{ }

Example:

{ "/usr/bin/curl" = lib.getExe pkgs.curl; }

virtualisation.quadlet.bundle.name

The name of the bundle, which its drop-ins and assetDirectory carry, so several bundles can share a host. The bundle owns these paths, so names must not collide.

Type: string matching the pattern [A-Za-z0-9_.-]+

Default:

"quadlet"

virtualisation.quadlet.bundle.sockets

The NixOS sockets of the bundle, such as those that activate a Quadlet container. A changed socket restarts with the service it activates, which holds its previous listener.

Type: list of string

Default:

[ ]

Example:

[
  "web"
]

virtualisation.quadlet.bundle.timers

The NixOS timers of the bundle, such as those that run a Quadlet container with Type=oneshot on a schedule.

Type: list of string

Default:

[ ]

Example:

[
  "backup"
]

virtualisation.quadlet.containersUser.enable

Whether to enable the containers user, whose subordinate IDs rootful podman allocates for UserNS=auto. It reserves the upper half of the 32-bit IDs, as podman documents, which the automatic ranges of other users never reach.

Type: boolean

Default:

true

Example:

true

virtualisation.quadlet.podman

The podman package the units are generated for

Type: package

Default: the package of the podman module of NixOS or Home Manager, else pkgs.podman

virtualisation.quadlet.quadletctl.enable

Whether to enable the quadletctl command to manage the units.

Type: boolean

Default:

true

Example:

true

virtualisation.quadlet.quadletctl.package

The package providing the quadletctl executable

Type: package

Default:

pkgs.callPackage ./pkgs/quadletctl/package.nix { }