diff options
Diffstat (limited to 'virtual/modules')
-rw-r--r-- | virtual/modules/websites/default.nix (renamed from virtual/modules/websites.nix) | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/virtual/modules/websites.nix b/virtual/modules/websites/default.nix index d794c7a..14b9998 100644 --- a/virtual/modules/websites.nix +++ b/virtual/modules/websites/default.nix | |||
@@ -59,16 +59,16 @@ let | |||
59 | in | 59 | in |
60 | { | 60 | { |
61 | imports = [ | 61 | imports = [ |
62 | ./websites/chloe | 62 | ./chloe |
63 | ./websites/ludivine | 63 | ./ludivine |
64 | ./websites/aten | 64 | ./aten |
65 | ./websites/piedsjaloux | 65 | ./piedsjaloux |
66 | ./websites/connexionswing | 66 | ./connexionswing |
67 | # built using: | 67 | # built using: |
68 | # sed -e "s/services\.httpd/services\.httpdProd/g" .nix-defexpr/channels/nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix | 68 | # sed -e "s/services\.httpd/services\.httpdProd/g" .nix-defexpr/channels/nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix |
69 | # And removed users / groups | 69 | # And removed users / groups |
70 | ./websites/apache/httpd_prod.nix | 70 | ./apache/httpd_prod.nix |
71 | ./websites/apache/httpd_inte.nix | 71 | ./apache/httpd_inte.nix |
72 | ]; | 72 | ]; |
73 | 73 | ||
74 | options.services.myWebsites = { | 74 | options.services.myWebsites = { |
@@ -95,6 +95,18 @@ in | |||
95 | }; | 95 | }; |
96 | 96 | ||
97 | config = { | 97 | config = { |
98 | networking = { | ||
99 | firewall = { | ||
100 | enable = true; | ||
101 | allowedTCPPorts = [ 80 443 ]; | ||
102 | }; | ||
103 | interfaces."eth0".ipv4.addresses = [ | ||
104 | # 176.9.151.89 declared in nixops -> infra / tools | ||
105 | { address = myconfig.ips.production; prefixLength = 32; } | ||
106 | { address = myconfig.ips.integration; prefixLength = 32; } | ||
107 | ]; | ||
108 | }; | ||
109 | |||
98 | services.myWebsites.Chloe.production.enable = cfg.production.enable; | 110 | services.myWebsites.Chloe.production.enable = cfg.production.enable; |
99 | services.myWebsites.Ludivine.production.enable = cfg.production.enable; | 111 | services.myWebsites.Ludivine.production.enable = cfg.production.enable; |
100 | services.myWebsites.Aten.production.enable = cfg.production.enable; | 112 | services.myWebsites.Aten.production.enable = cfg.production.enable; |