diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-17 16:11:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-17 16:11:56 +0200 |
commit | 76e1e908c1cbcf54b5a328af6e62a483f0637a60 (patch) | |
tree | 4786e4b681c4fc74257775c2e3142f16943d4369 /nixos/modules/virtualisation | |
parent | 44f236e33f44e986d3c0073afabbc9a1bf63fe2b (diff) |
nixos/modules/virtualisation: fix oci-containers with docker
The empty attribute set is invalidly provided as service config and results in evaluation error.
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/oci-containers.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/oci-containers.nix b/nixos/modules/virtualisation/oci-containers.nix index 36a28efc6ce44..61066c3cbd758 100644 --- a/nixos/modules/virtualisation/oci-containers.nix +++ b/nixos/modules/virtualisation/oci-containers.nix @@ -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"; }; }; |