mini-2024-12-26-14-02-54
This commit is contained in:
25
configs/libvirtd.nix
Normal file
25
configs/libvirtd.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user