virtualbox: add headless build (without Qt dependency) (#18026)

This commit is contained in:
Данило Глинський (Danylo Hlynskyi)
2016-09-01 20:54:58 +02:00
committed by Domen Kožar
parent 8a7afae58b
commit 78cd9f8ebc
4 changed files with 47 additions and 14 deletions
@@ -5,7 +5,7 @@ with lib;
let
cfg = config.virtualisation.virtualbox.host;
virtualbox = config.boot.kernelPackages.virtualbox.override {
inherit (cfg) enableHardening;
inherit (cfg) enableHardening headless;
};
in
@@ -47,6 +47,15 @@ in
</para></important>
'';
};
headless = mkOption {
type = types.bool;
default = false;
description = ''
Use VirtualBox installation without GUI and Qt dependency. Useful to enable on servers
and when virtual machines are controlled only via SSH.
'';
};
};
config = mkIf cfg.enable (mkMerge [{