diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-12-16 09:54:02 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-12-16 11:24:55 +0100 |
commit | e36bec661c2dae4c306867fa58faea833806af52 (patch) | |
tree | bcd890055ba06d11a15aa0d04678d0df1fa234d7 /nixos | |
parent | 477bc035688ff32e5aa10cc145e65ffdc730a207 (diff) | |
download | nixlib-e36bec661c2dae4c306867fa58faea833806af52.tar nixlib-e36bec661c2dae4c306867fa58faea833806af52.tar.gz nixlib-e36bec661c2dae4c306867fa58faea833806af52.tar.bz2 nixlib-e36bec661c2dae4c306867fa58faea833806af52.tar.lz nixlib-e36bec661c2dae4c306867fa58faea833806af52.tar.xz nixlib-e36bec661c2dae4c306867fa58faea833806af52.tar.zst nixlib-e36bec661c2dae4c306867fa58faea833806af52.zip |
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>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/virtualbox-host.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/virtualbox-host.nix b/nixos/modules/programs/virtualbox-host.nix index dd6fbad48689..c6abc9ddf894 100644 --- a/nixos/modules/programs/virtualbox-host.nix +++ b/nixos/modules/programs/virtualbox-host.nix @@ -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: { |