2023-10-12 22:38:03 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-02-12 16:41:28 +01:00
|
|
|
# See also: virt-manager.nix
|
|
|
|
|
2024-01-24 15:35:08 +01:00
|
|
|
# View log since last boot:
|
|
|
|
# journalctl -b SYSLOG_IDENTIFIER=org.gnome.Boxes
|
2023-10-12 22:38:03 +02:00
|
|
|
|
2024-01-24 15:35:08 +01:00
|
|
|
# Open issue: HiDPI support. https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/635
|
2023-10-12 22:38:03 +02:00
|
|
|
|
2024-01-24 15:35:08 +01:00
|
|
|
users.users.yoda = {
|
2023-12-20 23:08:30 +01:00
|
|
|
packages = with pkgs; [
|
|
|
|
gnome.gnome-boxes # Virtual machines
|
|
|
|
];
|
|
|
|
};
|
2024-01-24 15:35:08 +01:00
|
|
|
|
|
|
|
# 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;
|
2023-10-12 22:38:03 +02:00
|
|
|
}
|