2020-01-07 07:44:54 +01:00
|
|
|
{ pkgs, ... }: {
|
2020-12-20 01:22:00 +01:00
|
|
|
virtualisation = {
|
|
|
|
libvirtd = {
|
|
|
|
enable = true;
|
|
|
|
qemuRunAsRoot = false;
|
|
|
|
allowedBridges = [
|
|
|
|
"virbr0"
|
|
|
|
"virbr1"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
podman = {
|
|
|
|
enable = true;
|
|
|
|
dockerCompat = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
oci-containers.backend = "podman";
|
|
|
|
|
2020-01-07 07:44:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# you'll need to add your user to 'libvirtd' group to use virt-manager
|
2020-12-16 05:41:19 +01:00
|
|
|
environment.systemPackages = with pkgs; [ virt-manager vagrant ];
|
|
|
|
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
VAGRANT_DEFAULT_PROVIDER = "libvirt";
|
|
|
|
};
|
2020-01-07 07:44:54 +01:00
|
|
|
}
|