dotfiles/system/nixos/websites.nix

28 lines
596 B
Nix

{ pkgs, ... }:
{
services.nginx = {
enable = true;
# Documentation
virtualHosts = builtins.listToAttrs (builtins.map
(domain: {
name = domain;
value = {
listen = [
{
addr = "127.0.0.1";
port = 80;
}
];
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" ]);
};
}