nix-config/modules/virtualization.nix

29 lines
585 B
Nix
Raw Normal View History

2025-01-05 20:05:25 +01:00
{ config, pkgs, inputs, ... }:
let
overlay-qemu_full-stable = final: prev: {
qemu_full = inputs.nixpkgs-stable.legacyPackages."x86_64-linux".qemu_full;
};
in
2022-05-25 19:27:42 +02:00
{
2025-01-05 20:05:25 +01:00
nixpkgs.overlays = [ overlay-qemu_full-stable ];
2022-05-25 19:27:42 +02:00
environment.systemPackages = with pkgs; [
2022-09-27 01:16:19 +02:00
virt-manager
2022-10-29 20:38:12 +02:00
bridge-utils
2022-05-25 19:27:42 +02:00
];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# virtualization
virtualisation = {
libvirtd = {
enable = true;
2025-01-03 20:15:58 +01:00
qemu.runAsRoot = true;
2022-05-25 19:27:42 +02:00
qemu.package = pkgs.qemu_full;
};
podman = {
enable = true;
dockerCompat = true;
};
};
}