1

System/Nixinator: Configure libvirt virtualisation

This commit is contained in:
2026-03-27 16:54:56 +01:00
parent 004eff3abf
commit 0831730903
4 changed files with 26 additions and 2 deletions

View File

@ -107,6 +107,10 @@
handbrake handbrake
teamspeak6-client teamspeak6-client
# virt-manager # use system program option
virt-viewer
# gnome-boxes # doesn't list VMs imported using virsh
steam-devices-udev-rules steam-devices-udev-rules
]; ];

View File

@ -13,6 +13,7 @@ in {
options.homemodules.packages = import ./options.nix {inherit lib mylib;}; options.homemodules.packages = import ./options.nix {inherit lib mylib;};
config = lib.mkIf packages.enable { config = lib.mkIf packages.enable {
# TODO: Add extra packages option and use that from host-specific configs
home.packages = with pkgs; home.packages = with pkgs;
lib.mkMerge [ lib.mkMerge [
# Common packages # Common packages

View File

@ -193,7 +193,25 @@
# }; # };
}; };
# environment.systemPackages = with pkgs; []; environment.systemPackages = with pkgs; [
spice
spice-gtk
];
virtualisation = {
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
# ovmf.enable = true; # deprecated
swtpm.enable = true;
runAsRoot = true;
};
};
spiceUSBRedirection.enable = true;
};
networking.firewall.trustedInterfaces = ["virbr0"]; # libvirt
programs = { programs = {
ausweisapp = { ausweisapp = {
@ -205,6 +223,8 @@
enable = true; enable = true;
gdb = true; gdb = true;
}; };
virt-manager.enable = true;
}; };
services = { services = {

View File

@ -72,7 +72,6 @@ in {
if docker.podman if docker.podman
then "podman" then "podman"
else "docker"; # "docker" or "podman" else "docker"; # "docker" or "podman"
libvirtd.enable = true;
}; };
systemd.services = let systemd.services = let