nix-config/aspects/libvirtd.nix
William 5247bbda03 add single-file NixOS aspects
Standalone NixOS modules: ai, bluetooth, dev, fwupd, libvirtd,
networkmanager, podman

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 22:36:37 -03:00

18 lines
361 B
Nix

{ ... }:
{
flake.modules.nixos.libvirtd = { config, lib, pkgs, ... }: {
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
programs.virt-manager.enable = true;
networking.firewall.trustedInterfaces = [ "virbr0" ];
users.users.user.extraGroups = [
"libvirt"
"libvirtd"
];
};
}