summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/virtualization-virtualbox.nix
blob: 610b63732ec1668db3005b2523f8eaa5686d64c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 ];
}