summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-01 17:18:07 +0100
committertv <tv@krebsco.de>2016-02-01 17:18:07 +0100
commitcaf6c841d4de0184e29b0523dbee169cbadc03d3 (patch)
treede9f3b9f0f47c332191ffec1bc53af1b158b889c
parentd9808bba5855b096b69d0b9285550af59a005f85 (diff)
tv nginx-public_html: init
-rw-r--r--tv/1systems/nomic.nix11
-rw-r--r--tv/1systems/wu.nix11
-rw-r--r--tv/1systems/xu.nix11
-rw-r--r--tv/2configs/nginx-public_html.nix14
4 files changed, 17 insertions, 30 deletions
diff --git a/tv/1systems/nomic.nix b/tv/1systems/nomic.nix
index 145e9b2..64fe5a6 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 47fdb20..6dd0512 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 12c115e..4091295 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 0000000..50c6239
--- /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;
+ '')
+ ];
+ };
+}