Enable libvirtd and add inspection tools

Rename group "libvirt" to "libvirtd".
Add diffoscope and nix-index to systemPackages.
Replace hplipWithPlugin with hplip.
Enable spice USB redirection and add pkgs.virtiofsd to
virtualisation.libvirtd.qemu.vhostUserPackages.
This commit is contained in:
Stefan Kempinger 2026-01-28 15:49:03 +01:00
parent ea76f8a6f2
commit 8fde10cc50

View file

@ -96,7 +96,7 @@
"adbusers" "adbusers"
"wireshark" "wireshark"
"networkmanager" "networkmanager"
"libvirt" "libvirtd"
]; ];
}; };
@ -137,6 +137,8 @@
ffmpeg-full ffmpeg-full
ghex ghex
wireguard-tools wireguard-tools
diffoscope
nix-index
# GUI programs # GUI programs
@ -197,7 +199,7 @@
services.flatpak.enable = true; services.flatpak.enable = true;
services.printing.enable = true; services.printing.enable = true;
services.hardware.bolt.enable = true; services.hardware.bolt.enable = true;
services.printing.drivers = [ pkgs.hplipWithPlugin ]; services.printing.drivers = [ pkgs.hplip ];
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns4 = true; nssmdns4 = true;
@ -243,7 +245,9 @@
enable = true; enable = true;
dockerCompat = true; dockerCompat = true;
}; };
virtualisation.spiceUSBRedirection.enable = true;
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ];
systemd.user.extraConfig = '' systemd.user.extraConfig = ''
DefaultEnvironment="PATH=/run/wrappers/bin:/home/%u/.nix-profile/bin:/nix/profile/bin:/home/%u/.local/state/nix/profile/bin:/etc/profiles/per-user/%u/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin" DefaultEnvironment="PATH=/run/wrappers/bin:/home/%u/.nix-profile/bin:/nix/profile/bin:/home/%u/.local/state/nix/profile/bin:/etc/profiles/per-user/%u/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"