Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
1
module/aspect/virtualisation/libvirtd/libvirtd-guest.wip
Normal file
1
module/aspect/virtualisation/libvirtd/libvirtd-guest.wip
Normal file
|
|
@ -0,0 +1 @@
|
|||
a
|
||||
31
module/aspect/virtualisation/libvirtd/libvirtd-host.nix
Normal file
31
module/aspect/virtualisation/libvirtd/libvirtd-host.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
den.aspects = {
|
||||
libvirtd-host = {
|
||||
nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
vhostUserPackages = with pkgs; [ virtiofsd ];
|
||||
runAsRoot = true;
|
||||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
programs.virt-manager.enable = true;
|
||||
environment.systemPackages = [
|
||||
pkgs.qemu
|
||||
pkgs.pciutils
|
||||
];
|
||||
users.users.qemu-libvirtd.group = "qemu-libvirtd";
|
||||
users.groups.qemu-libvirtd = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue