From c6c40da83712ca91ede062d84e31b57448db140f Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 12 Jul 2016 09:43:23 +0200 Subject: m 2 virtualbox: directly retrieve vboxguestextensions --- makefu/2configs/virtualization-virtualbox.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/makefu/2configs/virtualization-virtualbox.nix b/makefu/2configs/virtualization-virtualbox.nix index 5d84b0284..2b4e24774 100644 --- a/makefu/2configs/virtualization-virtualbox.nix +++ b/makefu/2configs/virtualization-virtualbox.nix @@ -14,5 +14,10 @@ in { nixpkgs.config.virtualbox.enableExtensionPack = true; users.extraGroups.vboxusers.members = [ "${mainUser.name}" ]; - environment.systemPackages = [ vboxguestpkg ]; + nixpkgs.config.packageOverrides = super: { + boot.kernelPackages = super.boot.kernelPackages.virtualbox.override { + buildInputs = super.boot.kernelPackages.virtualBox.buildInputs + ++ [ vboxguestpkg ]; + }; + }; } -- cgit v1.2.3