format the repo files
This commit is contained in:
@@ -1,22 +1,25 @@
|
||||
#
|
||||
# Qemu/KVM with virt-manager
|
||||
# Qemu/KVM with virt-manager
|
||||
#
|
||||
|
||||
{ config, pkgs, user, ... }:
|
||||
|
||||
{ # Add libvirtd and kvm to userGroups
|
||||
users.groups.libvirtd.members = [ "root" "${user}" ];
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
user,
|
||||
...
|
||||
}: {
|
||||
# Add libvirtd and kvm to userGroups
|
||||
users.groups.libvirtd.members = ["root" "${user}"];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true; # Virtual drivers
|
||||
enable = true; # Virtual drivers
|
||||
onShutdown = "shutdown";
|
||||
#qemuPackage = pkgs.qemu_kvm; # Default
|
||||
qemu = {
|
||||
runAsRoot = false;
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true; # USB passthrough
|
||||
spiceUSBRedirection.enable = true; # USB passthrough
|
||||
};
|
||||
programs.dconf.enable = true;
|
||||
|
||||
@@ -27,12 +30,13 @@
|
||||
qemu
|
||||
OVMF
|
||||
OVMF-cloud-hypervisor
|
||||
gvfs # Used for shared folders between linux and windows
|
||||
gvfs # Used for shared folders between linux and windows
|
||||
cloud-hypervisor
|
||||
];
|
||||
};
|
||||
|
||||
services = { # Enable file sharing between OS
|
||||
services = {
|
||||
# Enable file sharing between OS
|
||||
gvfs.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user