virt: add virtualbox

This commit is contained in:
Kevin Baensch 2024-12-14 22:00:03 +01:00
parent 83c3ea02b6
commit cbed0107be
Signed by: derped
GPG key ID: C0F1D326C7626543
2 changed files with 14 additions and 0 deletions

View file

@ -47,6 +47,7 @@ let
"lp"
])
++ (optional config.programs.virt-manager.enable "libvirtd")
++ (optional config.virtualisation.virtualbox.host.enable "vboxusers")
++ (optional (withDocker && !withPodman) "docker")
++ (optional withPodman "podman");
shell = "${pkgs.zsh}/bin/zsh";

13
services/virtualbox.nix Normal file
View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}:
with lib;
mkIf (elem "virtualbox" config.machine.services) {
virtualisation.virtualbox.host = {
enable = true;
headless = true;
};
}