added virt

This commit is contained in:
twoneis 2023-11-24 23:15:30 +01:00
parent fda2175fa5
commit ddeb33ed7f
2 changed files with 31 additions and 0 deletions

View file

@ -5,6 +5,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
../gnome ../gnome
../virt
]; ];
#Optimise nix store #Optimise nix store

30
modules/virt/default.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }: {
programs.dconf.enable = true;
users.users.twoneis.extraGroups = [ "libvirtd" ];
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
spice
spice-gtk
spice-protocol
win-virtio
win-spice
gnome.adwaita-icon-theme
];
virtualisation = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
};
};
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd = true;
}