From 4a299f3bf0a7d328c7081d4673a26a1fda25eb1c Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 24 Jan 2024 15:35:08 +0100 Subject: [PATCH] update GNOME boxes --- modules/boxes.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/modules/boxes.nix b/modules/boxes.nix index d973ab8..7d7efdf 100644 --- a/modules/boxes.nix +++ b/modules/boxes.nix @@ -1,14 +1,24 @@ { config, pkgs, ... }: { - # https://nixos.wiki/wiki/Libvirt + # View log since last boot: + # journalctl -b SYSLOG_IDENTIFIER=org.gnome.Boxes + + # Open issue: HiDPI support. https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/635 - # libvirt is a dependency of GNOME Boxes - virtualisation.libvirtd.enable = true; users.users.yoda = { - extraGroups = [ "libvirtd" ]; - packages = with pkgs; [ gnome.gnome-boxes # Virtual machines ]; }; + + # libvirt is a dependency of GNOME Boxes + # https://nixos.wiki/wiki/Libvirt + virtualisation.libvirtd.enable = true; + users.users.yoda.extraGroups = [ "libvirtd" ]; + + # Required for USB redirection to work, see + # https://github.com/NixOS/nixpkgs/issues/39129#issuecomment-382569032 + # https://www.reddit.com/r/NixOS/comments/177wcyi/comment/k4vok4n/ + security.polkit.enable = true; + virtualisation.spiceUSBRedirection.enable = true; }