os/profiles/virt/default.nix

27 lines
556 B
Nix
Raw Normal View History

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