From 692feb7629a384b051375d3c4fd407941eafd838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sun, 25 Jun 2023 20:34:55 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(hydrogen/nginx)=20add=20projet-lon?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/services/nginx/n7/default.nix | 1 + hosts/hydrogen/services/nginx/n7/projet-long.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 hosts/hydrogen/services/nginx/n7/projet-long.nix diff --git a/hosts/hydrogen/services/nginx/n7/default.nix b/hosts/hydrogen/services/nginx/n7/default.nix index 5960e19..b0295f4 100644 --- a/hosts/hydrogen/services/nginx/n7/default.nix +++ b/hosts/hydrogen/services/nginx/n7/default.nix @@ -15,6 +15,7 @@ "/TP-calcul-parallele/" = import ./TP-calcul-parallele.nix pkgs; "/projet-probleme-inverse-3D/" = import ./projet-probleme-inverse-3D.nix pkgs; + "/projet-long/" = import ./projet-long.nix pkgs; }; }; }; diff --git a/hosts/hydrogen/services/nginx/n7/projet-long.nix b/hosts/hydrogen/services/nginx/n7/projet-long.nix new file mode 100644 index 0000000..2f55f3f --- /dev/null +++ b/hosts/hydrogen/services/nginx/n7/projet-long.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +let + pages = pkgs.fetchgit { + url = "https://git.fainsin.bzh/ENSEEIHT/projet-long"; + rev = "8290710fa7461c486dc727966c8eaa2234ae2e7d"; # pages + sha256 = "sha256-Gb/v0YKuxd2F+xOLFNIZcIHWVmzqmbr3QOEc2xwEjPc="; + }; +in { + alias = "${pages}/"; + index = "index.html"; +}