1
0
Fork 0
dotfiles/system/nixos/websites.nix

24 lines
586 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.website-docs-nifoc-pw ];
services.nginx = {
enable = true;
# Documentation
virtualHosts = builtins.listToAttrs (builtins.map
(domain: {
name = domain;
value = {
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
extraConfig = ''
autoindex on;
autoindex_format html;
'';
};
}) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]);
};
networking.firewall.allowedTCPPorts = [ 80 ];
}