diff options
author | adisbladis <adisbladis@gmail.com> | 2022-04-28 04:51:50 +1200 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2022-05-03 14:50:43 +1200 |
commit | 46241e156c26b6b738e028fec3b5f931e5a7ccf7 (patch) | |
tree | fe8a66dae7811cbd1843cceda793f8d42a0425e7 /nixos/modules/virtualisation/oci-containers.nix | |
parent | 986fc6057cbce174c1b8882f597b377be2198d74 (diff) |
nixos/virtualisation.oci-containers: Use podman as the default backend
This has a number of benefits such as that applying service limits will actually work since there isn't a layer of indirection (the Docker daemon) between the systemd service and the container runtime.
Diffstat (limited to 'nixos/modules/virtualisation/oci-containers.nix')
-rw-r--r-- | nixos/modules/virtualisation/oci-containers.nix | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nixos/modules/virtualisation/oci-containers.nix b/nixos/modules/virtualisation/oci-containers.nix index f40481727830b..fa5fe99730440 100644 --- a/nixos/modules/virtualisation/oci-containers.nix +++ b/nixos/modules/virtualisation/oci-containers.nix @@ -338,11 +338,7 @@ in { backend = mkOption { type = types.enum [ "podman" "docker" ]; - default = - # TODO: Once https://github.com/NixOS/nixpkgs/issues/77925 is resolved default to podman - # if versionAtLeast config.system.stateVersion "20.09" then "podman" - # else "docker"; - "docker"; + default = if versionAtLeast config.system.stateVersion "22.05" then "podman" else "docker"; description = "The underlying Docker implementation to use."; }; |