diff --git a/nixos/linux.nix b/nixos/linux.nix index 4031cf1..65bbf68 100644 --- a/nixos/linux.nix +++ b/nixos/linux.nix @@ -58,13 +58,6 @@ in { pkgs.arion ]; - # Arion works with Docker, but for NixOS-based containers, you need Podman - # since NixOS 21.05. - virtualisation.docker.enable = false; - virtualisation.podman.enable = true; - virtualisation.podman.dockerSocket.enable = true; - virtualisation.podman.defaultNetwork.dnsname.enable = true; - swapDevices = [ { device = "/swapfile"; @@ -98,6 +91,14 @@ in { autoPrune.enable = true; }; + # Arion works with Docker, but for NixOS-based containers, you need Podman + # since NixOS 21.05. + virtualisation.podman = { + enable = true; + dockerSocket.enable = true; + defaultNetwork.dnsname.enable = true; + }; + virtualisation.oci-containers = { backend = "docker";