mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
add virt-manager
This commit is contained in:
parent
a52ec30de4
commit
627f3257e4
@ -1,5 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# See also: virt-manager.nix
|
||||
|
||||
# View log since last boot:
|
||||
# journalctl -b SYSLOG_IDENTIFIER=org.gnome.Boxes
|
||||
|
||||
|
29
modules/virt-manager.nix
Normal file
29
modules/virt-manager.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# See also: boxes.nix
|
||||
|
||||
# libvirt is a dependency of Virt-manager
|
||||
# https://nixos.wiki/wiki/Libvirt
|
||||
virtualisation.libvirtd.enable = true;
|
||||
users.users.yoda.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Required for USB redirection to work with GNOME boxes. Maybe this is also required for virt-Manager?
|
||||
# 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;
|
||||
|
||||
# https://nixos.wiki/wiki/Virt-manager
|
||||
# TODO: nixpkgs virtio-win
|
||||
programs.virt-manager.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user