added virt
This commit is contained in:
parent
fda2175fa5
commit
ddeb33ed7f
2 changed files with 31 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
../gnome
|
||||
../virt
|
||||
];
|
||||
|
||||
#Optimise nix store
|
||||
|
|
30
modules/virt/default.nix
Normal file
30
modules/virt/default.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue