about summary refs log tree commit diff
path: root/nixos/modules/services/x11/terminal-server.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-12-23 21:30:10 +0100
committerPeter Simons <simons@cryp.to>2013-12-23 21:30:10 +0100
commit7bb7ea52e91fac2555dca9ccc1d99527da9fabb2 (patch)
tree2e9666283e409b7d2bc568ec849e85945e9e2fc5 /nixos/modules/services/x11/terminal-server.nix
parent19a79fc71dae59026738404b4f04ff273337b52d (diff)
nixos: don't white-list port 5900 in the firewall when x11vnc is enabled
If you want x11vnc to receive TCP connections from the rest of the world,
please add

    networking.firewall.allowedTCPPorts = [ 5900 ];

to /etc/nixos/configuration.nix.

See <http://lists.science.uu.nl/pipermail/nix-dev/2013-November/011997.html>
for the discussion that lead to this.
Diffstat (limited to 'nixos/modules/services/x11/terminal-server.nix')
-rw-r--r--nixos/modules/services/x11/terminal-server.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/nixos/modules/services/x11/terminal-server.nix b/nixos/modules/services/x11/terminal-server.nix
index 72ecb8fe2fd79..bf9c3435503dc 100644
--- a/nixos/modules/services/x11/terminal-server.nix
+++ b/nixos/modules/services/x11/terminal-server.nix
@@ -42,8 +42,6 @@ in
         Xaccess=${pkgs.writeText "Xaccess" "localhost"}
       '';
 
-    networking.firewall.allowedTCPPorts = [ 5900 ];
-
     systemd.sockets.terminal-server =
       { description = "Terminal Server Socket";
         wantedBy = [ "sockets.target" ];