virt: add virtualbox
This commit is contained in:
parent
83c3ea02b6
commit
efe1adadb8
1 changed files with 13 additions and 0 deletions
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