nixos-config/profiles/virtualisation.nix

20 lines
421 B
Nix
Raw Normal View History

2023-09-11 20:05:13 +04:00
{ config, lib, ... }: {
2021-01-21 22:13:53 +04:00
virtualisation.docker.enable = config.deviceSpecific.isHost;
virtualisation.libvirtd = {
enable = config.deviceSpecific.isHost;
2023-09-11 20:05:13 +04:00
allowedBridges = lib.mkForce [];
2021-01-21 22:13:53 +04:00
};
2021-07-27 00:53:51 +04:00
persist.state.directories = [
"/var/lib/docker"
"/var/lib/libvirt"
];
2021-01-21 22:13:53 +04:00
virtualisation.spiceUSBRedirection.enable = true;
2021-05-28 21:23:16 +04:00
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
};
2021-01-21 22:13:53 +04:00
}