nixos/modules/virtualisation: fix oci-containers with docker
The empty attribute set is invalidly provided as service config and results in evaluation error.
This commit is contained in:
parent
44f236e33f
commit
76e1e908c1
1 changed files with 4 additions and 3 deletions
|
@ -304,12 +304,13 @@ let
|
|||
# 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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue