nix-conf/system/virt.nix
2026-03-19 19:20:31 -05:00

20 lines
509 B
Nix

{
config,
pkgs,
lib,
...
}: {
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;
}