29 lines
822 B
Nix
29 lines
822 B
Nix
# https://md.timvandenboom.eth64.de/s/Nils/p/evdev-passthrough-BTUeHFqMQ3
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
# --- Virtualisierung (QEMU/KVM & Libvirtd) ---
|
|
virtualisation.libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
package = pkgs.qemu_kvm;
|
|
runAsRoot = true;
|
|
swtpm.enable = true;
|
|
verbatimConfig = ''
|
|
cgroup_device_acl = [
|
|
"/dev/null", "/dev/full", "/dev/zero",
|
|
"/dev/random", "/dev/urandom",
|
|
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
|
|
"/dev/rtc","/dev/hpet", "/dev/vfio/vfio",
|
|
"/dev/input/by-id/usb-Kinesis_Corporation_Adv360_Pro_5E36F7BBCC9DC86A-if02-event-kbd",
|
|
"/dev/input/by-id/usb-Keychron_Keychron_4K_Link-event-mouse"
|
|
]
|
|
'';
|
|
};
|
|
};
|
|
|
|
# Grafische Oberfläche für die Verwaltung
|
|
programs.virt-manager.enable = true;
|
|
}
|