feat(virt): enable hardware acceleration for qemu

This commit is contained in:
Khaïs COLIN 2024-08-16 18:59:02 +02:00
parent bfcfe52d47
commit 65c726ecd2
2 changed files with 13 additions and 1 deletions

View file

@ -103,7 +103,7 @@
initialPassword = "asunarovow";
isNormalUser = true;
description = "Khaïs COLIN";
extraGroups = [ "networkmanager" "wheel" "podman" ];
extraGroups = [ "networkmanager" "wheel" "podman" "libvirtd" ];
shell = pkgs.zsh;
};
@ -259,6 +259,10 @@
dockerSocket.enable = true;
};
# enable hardware acceleration for qemu
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -108,4 +108,12 @@ in {
};
};
programs.fuzzel.enable = true;
# default connection to qemu for virt-manager
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
}