Add a 404 page

This commit is contained in:
Julien Malka 2022-02-26 18:39:09 +01:00
parent 48be1d78ea
commit f66f54312f
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
3 changed files with 80 additions and 1 deletions

View file

@ -1,7 +1,8 @@
{ lib, pkgs, config, ... }:
with lib;
let cfg = config.luj.nginx;
in {
in
{
options.luj.nginx = {
enable = mkEnableOption "activate nginx service";
@ -30,5 +31,15 @@ in {
'';
};
services.nginx.virtualHosts."404.julienmalka.me" = {
default = true;
locations."/" = {
root = "${./404}";
};
};
};
}