2023-06-24 18:19:27 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
pages = pkgs.fetchgit {
|
|
|
|
url = "https://git.fainsin.bzh/Laurent/resume";
|
|
|
|
fetchLFS = true; # https://github.com/go-gitea/gitea/issues/4773
|
2023-11-15 14:43:46 +00:00
|
|
|
rev = "ae7d671cca11d6046197dcfd3e1d59a7a3752082"; # pages
|
|
|
|
sha256 = "sha256-rnWbT3AYjS6DwXlfoNPFGHZae7yvXoNHRWvHeWceG/M=";
|
2023-06-24 18:19:27 +00:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
"resume.laurent.fainsin.bzh" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
root = "${pages}/";
|
|
|
|
index = "resume.pdf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|