Define torbrowser

This commit is contained in:
Mikhail Klementev 2018-08-11 14:55:11 +00:00
parent ff4e7f8398
commit 575e147989
No known key found for this signature in database
GPG Key ID: D90D0727C1FEBEAB
2 changed files with 13 additions and 0 deletions

View File

@ -101,3 +101,4 @@ For create new app you should add package name (search at https://nixos.org/nixo
* evince
* libreoffice
* wire
* torbrowser

12
nix/torbrowser.nix Normal file
View File

@ -0,0 +1,12 @@
{pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>
<nix/base.nix>
];
# TODO: block all connections outside tor
environment.systemPackages = [ pkgs.tor-browser-bundle-bin ];
services.xserver.displayManager.sessionCommands = "while [ 1 ]; do ${pkgs.tor-browser-bundle-bin}/bin/tor-browser; done &";
}