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