diff options
author | tv <tv@krebsco.de> | 2015-06-22 18:20:25 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-06-22 18:20:25 +0200 |
commit | 245c7842072c8dec51ab6aca07437b826c38b242 (patch) | |
tree | 1056515620276960498f3c7455624802d6173620 /modules/wu | |
parent | 14f619e3efbea9d614aa46f3d0d04b8d7d0c8e33 (diff) |
tv: modularize nginx
Diffstat (limited to 'modules/wu')
-rw-r--r-- | modules/wu/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/wu/default.nix b/modules/wu/default.nix index 76e8c6b..ac11f74 100644 --- a/modules/wu/default.nix +++ b/modules/wu/default.nix @@ -4,6 +4,8 @@ let lib = import ../../lib { lib = pkgs.lib; inherit pkgs; }; inherit (lib) majmin; + + location = pkgs.lib.nameValuePair; # TODO this is also in modules/tv/git/cgit.nix in { @@ -12,7 +14,6 @@ in ../common/nixpkgs.nix ../tv/base.nix ../tv/exim-retiolum.nix - ../tv/nginx.nix ../tv/retiolum.nix ../tv/sanitize.nix ../tv/smartd.nix @@ -33,6 +34,17 @@ in ]; }; } + { + imports = [ ../tv/nginx ]; + tv.nginx = { + enable = true; + retiolum-locations = [ + (location "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + '') + ]; + }; + } ]; nix.maxJobs = 8; |