(hydrogen/nginx) projet-intelligence-artificielle-multimedia stop using pages, use the flake

This commit is contained in:
Laureηt 2023-11-29 15:34:38 +01:00
parent f83dda4946
commit 1b88aa463d
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 8 additions and 13 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ inputs, system, pkgs, ... }: {
services.nginx.virtualHosts = {
"n7.laurent.fainsin.bzh" = {
enableACME = true;
@ -17,7 +17,9 @@
import ./projet-systemes-algorithmes-repartis.nix pkgs;
"/projet-intelligence-artificielle-multimedia/" = # #
import ./projet-intelligence-artificielle-multimedia.nix pkgs;
import ./projet-intelligence-artificielle-multimedia.nix {
inherit inputs system;
};
"/projet-probleme-inverse-3D/" = # #
import ./projet-probleme-inverse-3D.nix pkgs;

View file

@ -1,12 +1,5 @@
{ pkgs, ... }:
let
pages = pkgs.fetchgit {
url =
"https://git.fainsin.bzh/ENSEEIHT/projet-intelligence-artificielle-multimedia";
rev = "8d7708db070170f6f3b276c5ea6f2f1b38e57ee5"; # pages
sha256 = "07cmnxmhb4l2chb8h9y45jnm10fqlmlq9d7zwllgk6l3gc0m3rdp";
};
in {
alias = "${pages}/";
index = "slides.html";
{ inputs, system, ... }: {
alias =
inputs.projet-intelligence-artificielle-multimedia.packages.${system}.slides
+ "/";
}