-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvm.nix
36 lines (31 loc) · 996 Bytes
/
vm.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, pkgs, ... }:
{
# Enable dconf (System Management Tool)
programs.dconf.enable = true;
# Add user to libvirtd group
# users.users.$user.extraGroups = [ "libvirtd" ];
# Install necessary packages
# environment.systemPackages = with pkgs; [
# spice # Complete open source solution for interaction with virtualized desktop devices
# spice-gtk # GTK 3 SPICE widget
# spice-protocol # Protocol headers for the SPICE protocol
# virt-manager # Virtualization manager
# virt-viewer # Viewer for remote virtual machines
# virtio-win # Windows VirtIO Drivers
# win-spice # Windows SPICE Drivers
# gnome.adwaita-icon-theme
# ];
# Manage the virtualisation services
virtualisation = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
};
};
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
}