nixos/modules/virtualisation: fix oci-containers with docker

The empty attribute set is invalidly provided as service config and
results in evaluation error.

Changed files
+4 -3
nixos
modules
virtualisation
+4 -3
nixos/modules/virtualisation/oci-containers.nix
···
# ExecReload = ...;
###
-
Environment=if cfg.backend == "podman" then "PODMAN_SYSTEMD_UNIT=podman-${name}.service" else {};
-
Type=if cfg.backend == "podman" then "notify" else {};
-
NotifyAccess=if cfg.backend == "podman" then "all" else {};
TimeoutStartSec = 0;
TimeoutStopSec = 120;
Restart = "always";
+
} // optionalAttrs (cfg.backend == "podman") {
+
Environment="PODMAN_SYSTEMD_UNIT=podman-${name}.service";
+
Type="notify";
+
NotifyAccess="all";
};
};