update GNOME boxes

This commit is contained in:
Daniel Langbein 2024-01-24 15:35:08 +01:00
parent dc1f4a89bd
commit 4a299f3bf0
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -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;
}