mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
25 lines
504 B
Nix
25 lines
504 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
environment.systemPackages = with pkgs; [
|
|
virt-manager
|
|
dnsmasq
|
|
virtiofsd
|
|
];
|
|
programs.virt-manager.enable = true;
|
|
virtualisation.libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
package = pkgs.qemu_kvm;
|
|
runAsRoot = true;
|
|
swtpm.enable = true;
|
|
};
|
|
};
|
|
users.users.${config.var.username} = {
|
|
extraGroups = ["libvirtd"];
|
|
};
|
|
networking.firewall.trustedInterfaces = ["virbr0"];
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
|
}
|