nix-conf/system/virt.nix

15 lines
488 B
Nix
Raw Normal View History

2024-12-22 23:46:42 -05:00
{config, ...}: {
virtualisation.containers.enable = config.u.has.container;
2024-10-18 23:42:11 -04:00
virtualisation = {
podman = {
2024-12-22 23:46:42 -05:00
enable = config.u.has.container;
2024-10-18 23:42:11 -04:00
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
2024-12-22 23:46:42 -05:00
virtualisation.libvirtd.enable = config.u.has.virt;
programs.virt-manager.enable = config.u.has.graphical && config.u.has.virt;
2024-10-18 23:42:11 -04:00
programs.nix-ld.enable = true;
2024-12-22 23:46:42 -05:00
hardware.graphics.enable32Bit = config.u.has.graphical && config.u.has.wine;
2024-10-18 23:42:11 -04:00
}