add libvirt to artemision

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-07-04 13:35:41 -04:00 committed by Alice Huston
parent 08f1c45a59
commit 113e2034b9
2 changed files with 31 additions and 0 deletions

View File

@ -16,6 +16,7 @@
./fingerprint.nix
./steam.nix
./graphics.nix
./libvirt.nix
];
time.timeZone = "America/New_York";

View File

@ -0,0 +1,30 @@
{
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" ];
};
}