Standalone NixOS modules: ai, bluetooth, dev, fwupd, libvirtd, networkmanager, podman Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
361 B
Nix
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"
|
|
];
|
|
};
|
|
}
|