nixos-config/profiles/virtualisation.nix

19 lines
379 B
Nix

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