From 575e147989823e4b8655f00e6f8bb28024982fc5 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 11 Aug 2018 14:55:11 +0000 Subject: [PATCH] Define torbrowser --- README.md | 1 + nix/torbrowser.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 nix/torbrowser.nix diff --git a/README.md b/README.md index 879465e..b20330f 100644 --- a/README.md +++ b/README.md @@ -101,3 +101,4 @@ For create new app you should add package name (search at https://nixos.org/nixo * evince * libreoffice * wire +* torbrowser diff --git a/nix/torbrowser.nix b/nix/torbrowser.nix new file mode 100644 index 0000000..f2ef950 --- /dev/null +++ b/nix/torbrowser.nix @@ -0,0 +1,12 @@ +{pkgs, ...}: +{ + imports = [ + + + ]; + + # 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 &"; +}