2022-12-01 14:51:08 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
environment.systemPackages = [ pkgs.website-docs-nifoc-pw ];
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Documentation
|
2022-12-01 14:56:38 +00:00
|
|
|
virtualHosts = builtins.listToAttrs (builtins.map
|
2022-12-01 14:51:08 +00:00
|
|
|
(domain: {
|
|
|
|
name = domain;
|
|
|
|
value = {
|
|
|
|
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
|
|
|
|
extraConfig = ''
|
|
|
|
autoindex on;
|
|
|
|
autoindex_format html;
|
|
|
|
'';
|
|
|
|
};
|
2022-12-01 15:21:38 +00:00
|
|
|
}) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]);
|
2022-12-01 14:51:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
|
|
|
}
|