From 16c0713523c232c6b439b420fbf7e7869b769745 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 13 Nov 2020 08:49:13 +0100 Subject: [PATCH] remove end-of-line whitespace --- configuration.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5250377..fbb12e9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -35,7 +35,7 @@ hostName = "maxwell"; firewall.allowedTCPPorts = [ - 443 80 # reverse proxy + 443 80 # reverse proxy 8080 # hubot 5349 # turn server 5350 # turn server @@ -128,7 +128,7 @@ # Users don't have a password wheelNeedsPassword = false; extraConfig = - let + let path = "/run/current-system/sw/bin"; journal = name: "${path}/journalctl -* ${name}"; services = lib.concatMapStringsSep "," (name: "${journal name}"); @@ -152,14 +152,14 @@ ''; # Limit user process to stop fork bombs - security.pam.loginLimits = [ + security.pam.loginLimits = [ { domain = "@users"; - type = "hard"; + type = "hard"; item = "nproc"; value = "400"; } ]; - + ### ACME certificates security.acme = with config.var; { email = "rnhmjoj@inventati.org"; @@ -312,7 +312,7 @@ ssl_session_timeout 23m; ssl_prefer_server_ciphers on; ssl_stapling on; - ssl_stapling_verify on; + ssl_stapling_verify on; ''; recommendedGzipSettings = true; recommendedProxySettings = true; @@ -323,8 +323,7 @@ sslDhparam = "${config.security.dhparams.path}/nginx.pem"; # Maxwell - virtualHosts."${hostname}" = - { + virtualHosts."${hostname}" = { enableACME = true; forceSSL = true; default = true; @@ -334,7 +333,7 @@ # Returns IP address locations."/ip".extraConfig = "return 200 $remote_addr;"; - # Asjon code coverage reports + # Asjon code coverage reports locations."/asjon/report/" = { index = "index.html"; alias = "/var/lib/asjon/tree/report/"; @@ -351,7 +350,7 @@ }; # Git server - locations."/git/" .proxyPass = "http://localhost:3000/"; + locations."/git/".proxyPass = "http://localhost:3000/"; # Syncthing locations."/sync/".proxyPass = "http://localhost:8384/";