virtualbox: add headless build (without Qt dependency) (#18026)
This commit is contained in:
committed by
Domen Kožar
parent
8a7afae58b
commit
78cd9f8ebc
@@ -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 [{
|
||||
|
||||
Reference in New Issue
Block a user