i am an idiot, i forgot to remove the xdg portal config in configuration.nix on apollo, this broke screensharing
This commit is contained in:
parent
d28b00841c
commit
4d2554aae8
12 changed files with 418 additions and 35 deletions
63
base/virtualisation/virtualisation.nix
Normal file
63
base/virtualisation/virtualisation.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ pkgs, config, ... }: {
|
||||
|
||||
imports = [
|
||||
./kvmfr-options.nix
|
||||
./libvirt.nix
|
||||
./virtualisationmod.nix
|
||||
./vfio.nix
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
onBoot = "ignore";
|
||||
onShutdown = "shutdown";
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
ovmf = {
|
||||
enable = true;
|
||||
packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
vhostUserPackages = [ pkgs.virtiofsd ];
|
||||
swtpm.enable = true;
|
||||
runAsRoot = true;
|
||||
};
|
||||
clearEmulationCapabilities = false;
|
||||
deviceACL = [
|
||||
"/dev/ptmx"
|
||||
"/dev/kvm"
|
||||
"/dev/kvmfr0"
|
||||
"/dev/vfio/vfio"
|
||||
"/dev/vfio/30"
|
||||
];
|
||||
};
|
||||
|
||||
kvmfr = {
|
||||
enable = true;
|
||||
shm = {
|
||||
enable = true;
|
||||
size = 512;
|
||||
user = "alyx";
|
||||
group = "qemu-libvirtd";
|
||||
mode = "0666";
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
|
||||
virtualisation.vfio = {
|
||||
enable = true;
|
||||
IOMMUType = "intel";
|
||||
devices = [
|
||||
"1002:67df"
|
||||
"1002:aaf0"
|
||||
"1b21:2142"
|
||||
];
|
||||
ignoreMSRs = true;
|
||||
disablePCIeASPM = true;
|
||||
disableEFIfb = false;
|
||||
};
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" "vhost_vsock" "vfio_virqfd" "vhost-net" ];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue