mirror of
https://github.com/divnix/digga.git
synced 2024-12-25 17:14:38 +03:00
27 lines
556 B
Nix
27 lines
556 B
Nix
{ pkgs, ... }: {
|
|
virtualisation = {
|
|
libvirtd = {
|
|
enable = true;
|
|
qemuRunAsRoot = false;
|
|
allowedBridges = [
|
|
"virbr0"
|
|
"virbr1"
|
|
];
|
|
};
|
|
|
|
containers.enable = true;
|
|
|
|
podman.enable = true;
|
|
oci-containers.backend = "podman";
|
|
};
|
|
|
|
# you'll need to add your user to 'libvirtd' group to use virt-manager
|
|
environment.systemPackages = with pkgs; [ virt-manager vagrant ];
|
|
|
|
environment.shellAliases.docker = "podman";
|
|
|
|
environment.sessionVariables = {
|
|
VAGRANT_DEFAULT_PROVIDER = "libvirt";
|
|
};
|
|
}
|