add tor,virtualbox
This commit is contained in:
parent
e2b141e6ad
commit
c65614cdef
7
makefu/2configs/tor.nix
Normal file
7
makefu/2configs/tor.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.tor.enable = true;
|
||||
services.tor.client.enable = true;
|
||||
# also enables services.tor.client.privoxy
|
||||
}
|
18
makefu/2configs/virtualization-virtualbox.nix
Normal file
18
makefu/2configs/virtualization-virtualbox.nix
Normal file
@ -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 ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user