diff options
author | makefu <github@syntax-fehler.de> | 2015-09-27 19:34:13 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-09-27 19:34:13 +0200 |
commit | c65614cdef66c38ff2939928e9072873e19e1c37 (patch) | |
tree | 76272f33611f93bcad468f8d5c6c195407a6ea31 | |
parent | e2b141e6ad6aac4028c852d58cdae73884ddec0a (diff) |
add tor,virtualbox
-rw-r--r-- | makefu/2configs/tor.nix | 7 | ||||
-rw-r--r-- | makefu/2configs/virtualization-virtualbox.nix | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/makefu/2configs/tor.nix b/makefu/2configs/tor.nix new file mode 100644 index 000000000..e466a1839 --- /dev/null +++ b/makefu/2configs/tor.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: + +{ + services.tor.enable = true; + services.tor.client.enable = true; + # also enables services.tor.client.privoxy +} diff --git a/makefu/2configs/virtualization-virtualbox.nix b/makefu/2configs/virtualization-virtualbox.nix new file mode 100644 index 000000000..164401f77 --- /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 ]; +} |