27 lines
479 B
Nix
27 lines
479 B
Nix
{ ... }:
|
|
{
|
|
flake.modules.nixos.libvirtd =
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
virtualisation = {
|
|
libvirtd.enable = true;
|
|
spiceUSBRedirection.enable = true;
|
|
};
|
|
|
|
programs.virt-manager.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [ vagrant ];
|
|
|
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
|
|
|
users.users.user.extraGroups = [
|
|
"libvirt"
|
|
"libvirtd"
|
|
];
|
|
};
|
|
}
|