summaryrefslogtreecommitdiffstats
path: root/2configs/lass/fastpoke-pages.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-07-24 14:00:28 +0200
committerlassulus <lass@aidsballs.de>2015-07-24 14:00:28 +0200
commit6476abd6ac7e000d0759569a1e2754acb2f518ca (patch)
tree29f7a1039aabd5f959c53bedfa515555dc0cefa6 /2configs/lass/fastpoke-pages.nix
parentc3c8c6a2eb3a77cf2ba246d0a14ce7c0626a995c (diff)
2 lass.fastpoke-pages: use functions for static
Diffstat (limited to '2configs/lass/fastpoke-pages.nix')
-rw-r--r--2configs/lass/fastpoke-pages.nix121
1 files changed, 61 insertions, 60 deletions
diff --git a/2configs/lass/fastpoke-pages.nix b/2configs/lass/fastpoke-pages.nix
index 2fd9a863a..4db4847f4 100644
--- a/2configs/lass/fastpoke-pages.nix
+++ b/2configs/lass/fastpoke-pages.nix
@@ -1,10 +1,37 @@
{ config, lib, pkgs, ... }:
with lib;
-{
+
+let
+ createStaticPage = domain:
+ {
+ tv.nginx.servers."${domain}" = {
+ server-names = [
+ "${domain}"
+ "www.${domain}"
+ ];
+ locations = [
+ (nameValuePair "/" ''
+ root /var/lib/http/${domain};
+ '')
+ ];
+ };
+ #networking.extraHosts = ''
+ # 10.243.206.102 ${domain}
+ #'';
+ };
+
+in {
imports = [
../../3modules/tv/nginx.nix
../../3modules/lass/iptables.nix
+ ] ++ map createStaticPage [
+ "habsys.de"
+ "pixelpocket.de"
+ "karlaskop.de"
+ "ubikmedia.de"
+ "apanowicz.de"
+ "aidsballs.de"
];
lass.iptables = {
@@ -15,72 +42,46 @@ with lib;
};
};
- #createStaticPage = domain:
- # {
- # irc.nginx.servers."${domain}" = {
- # server-names = [
- # "${domain}"
- # "www.${domain}"
- # ];
- # locations = [
- # (nameValuePair "/" ''
- # root /var/lib/http/${domain};
- # '')
- # ];
- # };
- # networking.extraHosts = ''
- # 10.243.206.102 ${domain}
- # '';
- # };
-
- #map createStaticPage [
- # "habsys.de"
- # "pixelpocket.de"
- # "karlaskop.de"
- # "ubikmedia.de"
- # "apanowicz.de"
- # "aidsballs.de"
- #];
tv.nginx = {
enable = true;
servers = {
- "habsys.de" = {
- server-names = [
- "habsys.de"
- "www.habsys.de"
- ];
- locations = [
- (nameValuePair "/" ''
- root /var/lib/http/habsys.de;
- '')
- ];
- };
+ #"habsys.de" = {
+ # server-names = [
+ # "habsys.de"
+ # "www.habsys.de"
+ # ];
+ # locations = [
+ # (nameValuePair "/" ''
+ # root /var/lib/http/habsys.de;
+ # '')
+ # ];
+ #};
- "karlaskop.de" = {
- server-names = [
- "karlaskop.de"
- "www.karlaskop.de"
- ];
- locations = [
- (nameValuePair "/" ''
- root /var/lib/http/karlaskop.de;
- '')
- ];
- };
+ #"karlaskop.de" = {
+ # server-names = [
+ # "karlaskop.de"
+ # "www.karlaskop.de"
+ # ];
+ # locations = [
+ # (nameValuePair "/" ''
+ # root /var/lib/http/karlaskop.de;
+ # '')
+ # ];
+ #};
- "pixelpocket.de" = {
- server-names = [
- "pixelpocket.de"
- "www.karlaskop.de"
- ];
- locations = [
- (nameValuePair "/" ''
- root /var/lib/http/karlaskop.de;
- '')
- ];
- };
+ #"pixelpocket.de" = {
+ # server-names = [
+ # "pixelpocket.de"
+ # "www.karlaskop.de"
+ # ];
+ # locations = [
+ # (nameValuePair "/" ''
+ # root /var/lib/http/karlaskop.de;
+ # '')
+ # ];
+ #};
};
};