diff options
author | tv <tv@krebsco.de> | 2016-02-01 17:18:07 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-01 17:18:07 +0100 |
commit | a7e1709a466cee24783e20b6219ef5112b00e8c9 (patch) | |
tree | 6c6b1a58217b0446e1f10c15ed4c2b018af9cbe7 | |
parent | f6a4131daecd6e5c1a0727adbcac43ba8530ec13 (diff) |
tv nginx-public_html: init
-rw-r--r-- | tv/1systems/nomic.nix | 11 | ||||
-rw-r--r-- | tv/1systems/wu.nix | 11 | ||||
-rw-r--r-- | tv/1systems/xu.nix | 11 | ||||
-rw-r--r-- | tv/2configs/nginx-public_html.nix | 14 |
4 files changed, 17 insertions, 30 deletions
diff --git a/tv/1systems/nomic.nix b/tv/1systems/nomic.nix index 145e9b236..64fe5a635 100644 --- a/tv/1systems/nomic.nix +++ b/tv/1systems/nomic.nix @@ -9,6 +9,7 @@ with lib; ../2configs/hw/AO753.nix ../2configs/exim-retiolum.nix ../2configs/git.nix + ../2configs/nginx-public_html.nix ../2configs/pulse.nix ../2configs/xserver { @@ -23,16 +24,6 @@ with lib; }; } { - krebs.nginx = { - enable = true; - servers.default.locations = [ - (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' - alias /home/$1/public_html$2; - '') - ]; - }; - } - { krebs.retiolum = { enable = true; connectTo = [ diff --git a/tv/1systems/wu.nix b/tv/1systems/wu.nix index 47fdb2092..6dd051210 100644 --- a/tv/1systems/wu.nix +++ b/tv/1systems/wu.nix @@ -10,6 +10,7 @@ with lib; ../2configs/exim-retiolum.nix ../2configs/git.nix ../2configs/mail-client.nix + ../2configs/nginx-public_html.nix ../2configs/pulse.nix ../2configs/xserver { @@ -135,16 +136,6 @@ with lib; }; } { - krebs.nginx = { - enable = true; - servers.default.locations = [ - (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' - alias /home/$1/public_html$2; - '') - ]; - }; - } - { krebs.retiolum = { enable = true; connectTo = [ diff --git a/tv/1systems/xu.nix b/tv/1systems/xu.nix index 12c115eb8..409129581 100644 --- a/tv/1systems/xu.nix +++ b/tv/1systems/xu.nix @@ -10,6 +10,7 @@ with lib; ../2configs/exim-retiolum.nix ../2configs/git.nix ../2configs/mail-client.nix + ../2configs/nginx-public_html.nix ../2configs/pulse.nix ../2configs/xserver { @@ -133,16 +134,6 @@ with lib; }; } { - krebs.nginx = { - enable = true; - servers.default.locations = [ - (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' - alias /home/$1/public_html$2; - '') - ]; - }; - } - { krebs.retiolum = { enable = true; connectTo = [ diff --git a/tv/2configs/nginx-public_html.nix b/tv/2configs/nginx-public_html.nix new file mode 100644 index 000000000..50c623915 --- /dev/null +++ b/tv/2configs/nginx-public_html.nix @@ -0,0 +1,14 @@ +{ lib, ... }: + +with lib; + +{ + krebs.nginx = { + enable = true; + servers.default.locations = [ + (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + '') + ]; + }; +} |