nix-conf/system/virt.nix
2024-12-22 23:46:42 -05:00

15 lines
488 B
Nix

{config, ...}: {
virtualisation.containers.enable = config.u.has.container;
virtualisation = {
podman = {
enable = config.u.has.container;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
virtualisation.libvirtd.enable = config.u.has.virt;
programs.virt-manager.enable = config.u.has.graphical && config.u.has.virt;
programs.nix-ld.enable = true;
hardware.graphics.enable32Bit = config.u.has.graphical && config.u.has.wine;
}