From 8e7bb847c6b1729846b9346432796aa9de92e5e9 Mon Sep 17 00:00:00 2001 From: orbitz Date: Sun, 14 Apr 2013 11:14:27 +0200 Subject: [PATCH] Cleanup whitespaces --- modules/services/web-servers/nginx/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/services/web-servers/nginx/default.nix b/modules/services/web-servers/nginx/default.nix index 628572f7bf3b..e567646ea461 100644 --- a/modules/services/web-servers/nginx/default.nix +++ b/modules/services/web-servers/nginx/default.nix @@ -1,14 +1,14 @@ { config, pkgs, ... }: - + with pkgs.lib; - + let cfg = config.services.nginx; configFile = pkgs.writeText "nginx.conf" '' ${cfg.config} ''; in - + { options = { services.nginx = { @@ -18,7 +18,7 @@ in Enable the nginx Web Server. "; }; - + config = mkOption { default = ""; description = " @@ -33,14 +33,14 @@ in "; }; }; - + }; - + config = mkIf cfg.enable { environment.systemPackages = [ pkgs.nginx ]; # TODO: test user supplied config file pases syntax test - + systemd.services.nginx = { description = "Nginx Web Server"; after = [ "network.target" ]; @@ -55,11 +55,11 @@ in ExecStart = "${pkgs.nginx}/bin/nginx -c ${configFile} -p ${cfg.stateDir}"; }; }; - + users.extraUsers.nginx = { group = "nginx"; }; - + users.extraGroups.nginx = {}; }; }