From db373a8c727cad91d375b40a6c70b11ed73bdafb Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Apr 2024 13:30:45 -0400 Subject: Add nixfmt to Lint.hs nixfmt is the soon-to-be official formatter for Nix code, as per the NixOS GitHub group. So I figure I should just adopt it without worrying too much about the specifics of the formatting. I just formatted everything in one go, hence the huge diff, oh well. --- Biz/Dev/Networking.nix | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'Biz/Dev/Networking.nix') diff --git a/Biz/Dev/Networking.nix b/Biz/Dev/Networking.nix index 1a28b56..c89add7 100644 --- a/Biz/Dev/Networking.nix +++ b/Biz/Dev/Networking.nix @@ -1,14 +1,11 @@ { ... }: -let - ports = import ../Cloud/Ports.nix; +let ports = import ../Cloud/Ports.nix; in { networking = { nameservers = [ "1.1.1.1" ]; hostName = "lithium"; - hosts = { - "::1" = [ "localhost" "ipv6-localhost" "ipv6-loopback" ]; - }; + hosts = { "::1" = [ "localhost" "ipv6-localhost" "ipv6-loopback" ]; }; firewall = { allowedTCPPorts = [ @@ -32,18 +29,9 @@ in { ports.stableDiffusion ports.tor ]; - allowedTCPPortRanges = [ - ports.torrents - ports.httpdev - ]; - allowedUDPPorts = [ - ports.dns - ports.et - ports.murmur - ]; - allowedUDPPortRanges = [ - ports.torrents - ]; + allowedTCPPortRanges = [ ports.torrents ports.httpdev ]; + allowedUDPPorts = [ ports.dns ports.et ports.murmur ]; + allowedUDPPortRanges = [ ports.torrents ]; }; # The global useDHCP flag is deprecated, therefore explicitly set to false here. -- cgit v1.2.3