From 2a53745f3e5f52b058882036136d4145dbc56ab6 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Sat, 19 Dec 2020 17:22:00 -0700 Subject: [PATCH] virt: enable oci containers via podman --- profiles/virt/default.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/profiles/virt/default.nix b/profiles/virt/default.nix index 3c82f8ed..1e775175 100644 --- a/profiles/virt/default.nix +++ b/profiles/virt/default.nix @@ -1,7 +1,21 @@ { pkgs, ... }: { - virtualisation.libvirtd = { - enable = true; - qemuRunAsRoot = false; + virtualisation = { + libvirtd = { + enable = true; + qemuRunAsRoot = false; + allowedBridges = [ + "virbr0" + "virbr1" + ]; + }; + + podman = { + enable = true; + dockerCompat = true; + }; + + oci-containers.backend = "podman"; + }; # you'll need to add your user to 'libvirtd' group to use virt-manager