20 lines
421 B
Nix
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-+"];
|
|
};
|
|
}
|