virt: add virtualbox
This commit is contained in:
parent
83c3ea02b6
commit
cbed0107be
2 changed files with 14 additions and 0 deletions
|
@ -47,6 +47,7 @@ let
|
||||||
"lp"
|
"lp"
|
||||||
])
|
])
|
||||||
++ (optional config.programs.virt-manager.enable "libvirtd")
|
++ (optional config.programs.virt-manager.enable "libvirtd")
|
||||||
|
++ (optional config.virtualisation.virtualbox.host.enable "vboxusers")
|
||||||
++ (optional (withDocker && !withPodman) "docker")
|
++ (optional (withDocker && !withPodman) "docker")
|
||||||
++ (optional withPodman "podman");
|
++ (optional withPodman "podman");
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
|
|
13
services/virtualbox.nix
Normal file
13
services/virtualbox.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
mkIf (elem "virtualbox" config.machine.services) {
|
||||||
|
virtualisation.virtualbox.host = {
|
||||||
|
enable = true;
|
||||||
|
headless = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue