From 3dd24a882998a9c1d35f2d6d1f28a846dff3c9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Tue, 29 Aug 2023 20:17:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(nginx)=20add=20projet-fin-etude=20?= =?UTF-8?q?slides=20and=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/services/nginx/n7/default.nix | 3 +++ hosts/hydrogen/services/nginx/n7/projet-fin-etude.nix | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 hosts/hydrogen/services/nginx/n7/projet-fin-etude.nix diff --git a/hosts/hydrogen/services/nginx/n7/default.nix b/hosts/hydrogen/services/nginx/n7/default.nix index 42ad87e..3440e72 100644 --- a/hosts/hydrogen/services/nginx/n7/default.nix +++ b/hosts/hydrogen/services/nginx/n7/default.nix @@ -34,6 +34,9 @@ "/projet-oral-anglais/" = # # import ./projet-oral-anglais.nix pkgs; + "/projet-fin-etude/" = # # + import ./projet-fin-etude.nix pkgs; + } // { "/TP-calcul-parallele/" = # # diff --git a/hosts/hydrogen/services/nginx/n7/projet-fin-etude.nix b/hosts/hydrogen/services/nginx/n7/projet-fin-etude.nix new file mode 100644 index 0000000..e961173 --- /dev/null +++ b/hosts/hydrogen/services/nginx/n7/projet-fin-etude.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +let + pages = pkgs.fetchgit { + url = "https://git.fainsin.bzh/ENSEEIHT/projet-fin-etude-rapport"; + rev = "193636d2f49e3b190606f1f8f70a9ebe29c7630e"; # pages + sha256 = "sha256-rLeX7M/oHK0p/OkkeqjWLAWF0tOMs8lJNC9EsRA7VF4="; + }; +in { + alias = "${pages}/"; + index = "index.html"; +}