change: move vm to system
This commit is contained in:
parent
b447abe057
commit
3b726039cd
1 changed files with 3 additions and 1 deletions
32
system/common/opt/vm.nix
Normal file
32
system/common/opt/vm.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.dconf.enable = true;
|
||||
|
||||
users.users.gcis.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.enable = true;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue