forked from mirrors/nixpkgs
nixos/virtualbox: Fix warning on enableHardening.
The warning was displayed whenever services.virtualboxHost.enable was true, but if people were to enable hardening, they'd still get that annoying message. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
477bc03568
commit
e36bec661c
|
@ -54,12 +54,12 @@ in
|
|||
boot.extraModulePackages = [ virtualbox ];
|
||||
environment.systemPackages = [ virtualbox ];
|
||||
|
||||
warnings = singleton (
|
||||
warnings = mkIf (!cfg.enableHardening) (singleton (
|
||||
"Hardening is currently disabled for VirtualBox, because of some " +
|
||||
"issues in conjunction with host-only-interfaces. If you don't use " +
|
||||
"hostonlyifs, it's strongly recommended to set " +
|
||||
"`services.virtualboxHost.enableHardening = true'!"
|
||||
);
|
||||
));
|
||||
|
||||
security.setuidOwners = let
|
||||
mkVboxStub = program: {
|
||||
|
|
Loading…
Reference in a new issue