nixos-config/profiles/virtualisation.nix
2023-09-11 20:05:13 +04:00

20 lines
421 B
Nix

{ config, lib, ... }: {
virtualisation.docker.enable = config.deviceSpecific.isHost;
virtualisation.libvirtd = {
enable = config.deviceSpecific.isHost;
allowedBridges = lib.mkForce [];
};
persist.state.directories = [
"/var/lib/docker"
"/var/lib/libvirt"
];
virtualisation.spiceUSBRedirection.enable = true;
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
};
}