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 ];
|
boot.extraModulePackages = [ virtualbox ];
|
||||||
environment.systemPackages = [ virtualbox ];
|
environment.systemPackages = [ virtualbox ];
|
||||||
|
|
||||||
warnings = singleton (
|
warnings = mkIf (!cfg.enableHardening) (singleton (
|
||||||
"Hardening is currently disabled for VirtualBox, because of some " +
|
"Hardening is currently disabled for VirtualBox, because of some " +
|
||||||
"issues in conjunction with host-only-interfaces. If you don't use " +
|
"issues in conjunction with host-only-interfaces. If you don't use " +
|
||||||
"hostonlyifs, it's strongly recommended to set " +
|
"hostonlyifs, it's strongly recommended to set " +
|
||||||
"`services.virtualboxHost.enableHardening = true'!"
|
"`services.virtualboxHost.enableHardening = true'!"
|
||||||
);
|
));
|
||||||
|
|
||||||
security.setuidOwners = let
|
security.setuidOwners = let
|
||||||
mkVboxStub = program: {
|
mkVboxStub = program: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user