From 30b47dace4a6fc5a45460f0634d7c0057bb7cdaf Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 12 Jul 2016 09:43:23 +0200 Subject: [PATCH] m 2 virtualbox: directly retrieve vboxguestextensions --- 2configs/virtualization-virtualbox.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2configs/virtualization-virtualbox.nix b/2configs/virtualization-virtualbox.nix index 5d84b02..2b4e247 100644 --- a/2configs/virtualization-virtualbox.nix +++ b/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 ]; + }; + }; }