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-06-25 11:50:33 +00:00
|
|
|
rev = "57134888a29bc56e4ca3a2507d4e3b728619948f"; # pages
|
2023-07-06 17:34:20 +00:00
|
|
|
sha256 = "sha256-i4VwSFB5XoI5ySfGx4sCeZDWqAJ9p53OCy9ewlOCWFU=";
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|