diff options
author | tv <tv@shackspace.de> | 2015-10-01 17:16:57 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-10-01 17:16:57 +0200 |
commit | cd61f94ba02c485327547ace8cd28a22e38bfe0f (patch) | |
tree | eb3ace527780b9e5b66cb7517e9bee6a61bd8e66 /makefu/2configs/virtualization-virtualbox.nix | |
parent | 24326956780833540fd65dd0cb750c1071fa51b9 (diff) | |
parent | d9f4d621bcde5ddc983a922e378657dba1f6e141 (diff) |
Merge remote-tracking branch 'pnp/master'
Diffstat (limited to 'makefu/2configs/virtualization-virtualbox.nix')
-rw-r--r-- | makefu/2configs/virtualization-virtualbox.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/makefu/2configs/virtualization-virtualbox.nix b/makefu/2configs/virtualization-virtualbox.nix new file mode 100644 index 000000000..610b63732 --- /dev/null +++ b/makefu/2configs/virtualization-virtualbox.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +let + mainUser = config.krebs.build.user; + version = "5.0.4"; + rev = "102546"; + vboxguestpkg = pkgs.fetchurl { + url = "http://download.virtualbox.org/virtualbox/${version}/Oracle_VM_VirtualBox_Extension_Pack-${version}-${rev}.vbox-extpack"; + sha256 = "1ykwpjvfgj11iwhx70bh2hbxhyy3hg6rnqzl4qac7xzg8xw8wqg4"; + }; +in { + #inherit vboxguestpkg; + virtualisation.virtualbox.host.enable = true; + nixpkgs.config.virtualbox.enableExtensionPack = true; + + users.extraGroups.vboxusers.members = [ "${mainUser.name}" ]; + environment.systemPackages = [ vboxguestpkg ]; +} |