mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
libvirt?
This commit is contained in:
parent
b45c21d50a
commit
389f855de3
2 changed files with 36 additions and 3 deletions
|
@ -15,9 +15,16 @@
|
|||
}
|
||||
// (
|
||||
''
|
||||
vpn|desktop|hyprland|chrome
|
||||
backups|hp-scanner|llm
|
||||
podman|docker|vbox
|
||||
desktop
|
||||
hyprland
|
||||
chrome
|
||||
vpn
|
||||
backups
|
||||
llm
|
||||
hp-scanner
|
||||
vbox
|
||||
podman
|
||||
docker
|
||||
''
|
||||
|> listify
|
||||
|> enableAttrs
|
||||
|
|
26
hosts/othalan/virt.nix
Normal file
26
hosts/othalan/virt.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
enabled,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.virt-manager = enabled;
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = enabled // {
|
||||
# Enable TPM emulation (optional)
|
||||
qemu = {
|
||||
swtpm = enabled;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# Enable USB redirection (optional)
|
||||
spiceUSBRedirection = enabled;
|
||||
};
|
||||
|
||||
users.users.daylin = {
|
||||
extraGroups = [ "libvirtd" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue