18 lines
376 B
Nix
18 lines
376 B
Nix
hosts: { lib, ... }:
|
|
let
|
|
mapMkMerge = builtins.mapAttrs (_host: configs: lib.mkMerge configs);
|
|
in {
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"404.cryto.net" = {
|
|
# Pseudo-hostname just to set a default when no Host header is specified
|
|
default = true;
|
|
extraConfig = ''
|
|
return 404;
|
|
'';
|
|
};
|
|
} // mapMkMerge hosts;
|
|
};
|
|
}
|