Files
nix-dotfiles/systems/artemision/libvirt.nix
2024-07-19 22:53:24 +00:00

31 lines
450 B
Nix

{
config,
lib,
pkgs,
...
}:
{
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
users.users.alice = {
extraGroups = [ "libvirtd" ];
};
}