mini-2024-12-26-14-02-54

This commit is contained in:
Alexander Szczepanski
2024-12-26 14:02:54 +01:00
parent ff6f7bf20d
commit 291f04004e
3 changed files with 33 additions and 3 deletions

25
configs/libvirtd.nix Normal file
View File

@ -0,0 +1,25 @@
{pkgs, ...}: {
users.extraGroups.libvirtd.members = ["alex"];
virtualisation = {
libvirtd = {
enable = true;
# Used for UEFI boot of Home Assistant OS guest image
qemu.ovmf.enable = true;
};
};
environment = {
systemPackages = with pkgs; [
# For virt-install
virt-manager
# For lsusb
usbutils
];
persistence."/persist" = {
directories = [
"/var/lib/libvirt"
];
};
};
}