From 37a5d838be7a0778036dbb10ca302536190f19b4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 13 Nov 2020 08:21:13 -0800 Subject: Format some ports for readability --- Biz/Dev/Configuration.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'Biz/Dev') diff --git a/Biz/Dev/Configuration.nix b/Biz/Dev/Configuration.nix index 70c2d36..c0c9e0a 100644 --- a/Biz/Dev/Configuration.nix +++ b/Biz/Dev/Configuration.nix @@ -1,8 +1,12 @@ { config, lib, pkgs, ... }: let - murmurPort = 64738; - torrents = { from = 6000; to = 6999; }; + ports = { + murmur = 64738; + torrents = { from = 6000; to = 6999; }; + delugeWeb = 8112; + jellyfin = 8096; + }; in { networking = { hostName = "lithium"; @@ -15,17 +19,17 @@ in { 22 8000 8443 443 # standard ports 8080 8081 8082 # mostly for urbit 500 10000 # no idea - 8096 # emby/jellyfin - 8112 # deluge - murmurPort + ports.jellyfin + ports.delugeWeb + ports.murmur ]; allowedTCPPortRanges = [ { from = 3000; to = 3100; } # dev stuff - torrents + ports.torrents ]; - allowedUDPPorts = [ murmurPort ]; + allowedUDPPorts = [ ports.murmur ]; allowedUDPPortRanges = [ - torrents + ports.torrents ]; checkReversePath = false; }; @@ -134,7 +138,7 @@ in { enable = true; registerName = "simatime"; password = "simatime"; - port = murmurPort; + port = ports.murmur; }; xserver = { -- cgit v1.2.3