(cesium) add projet-fin-etude as flake input

This commit is contained in:
Laureηt 2024-10-11 22:11:08 +02:00
parent 4392b6acf8
commit 87a307c89a
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk
3 changed files with 50 additions and 18 deletions

View file

@ -170,11 +170,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728638019, "lastModified": 1728673344,
"narHash": "sha256-eEga9ZYpWr4ippI8ntBdcNkXWY7qv1/9kK9jkemAyzQ=", "narHash": "sha256-Iqo1nHEkBeucGE48EWYbZkx9LAPAWyEkzAWH+fPXTUM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "6af4e02b9cf2a4126af542c9e299f13228cfe2e0", "rev": "a3619332369e1d254c68be5f019b3a8632e79bbc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -307,11 +307,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728598744, "lastModified": 1728650932,
"narHash": "sha256-sSfvyO5xH3HObHHmh6lp/hcvo7tMjFKd/HXpxyrRnoE=", "narHash": "sha256-mGKzqdsRyLnGNl6WjEr7+sghGgBtYHhJQ4mjpgRTCsU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "342a1d682386d3a1d74f9555cb327f2f311dda6e", "rev": "65ae9c147349829d3df0222151f53f79821c5134",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -562,6 +562,32 @@
"url": "https://git.fainsin.bzh/ENSEEIHT/projet-audionumerique" "url": "https://git.fainsin.bzh/ENSEEIHT/projet-audionumerique"
} }
}, },
"projet-fin-etude": {
"inputs": {
"flake-parts": [
"flake-parts"
],
"nixpkgs": [
"nixpkgs"
],
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1728676620,
"narHash": "sha256-iWbq4eeW+EAxfRBPCLD8rvAs7ah9rE0DvXK1osd02Qg=",
"ref": "refs/heads/master",
"rev": "098426d12cb0ec3c60462ed99f4101eede35df52",
"revCount": 58,
"type": "git",
"url": "https://git.fainsin.bzh/ENSEEIHT/projet-fin-etude-rapport"
},
"original": {
"type": "git",
"url": "https://git.fainsin.bzh/ENSEEIHT/projet-fin-etude-rapport"
}
},
"projet-intelligence-artificielle-multimedia": { "projet-intelligence-artificielle-multimedia": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": [
@ -736,6 +762,7 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"projet-audionumerique": "projet-audionumerique", "projet-audionumerique": "projet-audionumerique",
"projet-fin-etude": "projet-fin-etude",
"projet-intelligence-artificielle-multimedia": "projet-intelligence-artificielle-multimedia", "projet-intelligence-artificielle-multimedia": "projet-intelligence-artificielle-multimedia",
"projet-modelisation-geometrique": "projet-modelisation-geometrique", "projet-modelisation-geometrique": "projet-modelisation-geometrique",
"projet-oral-anglais": "projet-oral-anglais", "projet-oral-anglais": "projet-oral-anglais",

View file

@ -111,6 +111,12 @@
inputs.flake-parts.follows = "flake-parts"; inputs.flake-parts.follows = "flake-parts";
inputs.systems.follows = "systems"; inputs.systems.follows = "systems";
}; };
projet-fin-etude = {
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-fin-etude-rapport";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.systems.follows = "systems";
};
TP-calcul-parallele = { TP-calcul-parallele = {
url = "git+https://git.fainsin.bzh/ENSEEIHT/TP-calcul-parallele"; url = "git+https://git.fainsin.bzh/ENSEEIHT/TP-calcul-parallele";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,19 +1,18 @@
{ {
pkgs, inputs,
system,
vhost, vhost,
location, location,
... ...
}: let }: {
pages = pkgs.fetchgit { services.nginx.virtualHosts.${vhost}.locations = {
url = "https://git.fainsin.bzh/ENSEEIHT/projet-fin-etude-rapport"; "/${location}/" = {
rev = "32fe5c7ec6d67241951fdaf001e3da1c41b29dcf"; # pages alias = inputs.projet-fin-etude.packages.${system}.slides + "/";
sha256 = "sha256-pOu0lohJ1Yqg/a5hqnNTePTrU8t5By5AbhUAJfL5MBg="; tryFiles = "$uri $uri/ /${location}/index.html";
}; };
in { "=/${location}/rapport.pdf" = {
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = { alias = inputs.projet-fin-etude.packages.${system}.report + "/paper.pdf";
alias = "${pages}/"; };
index = "index.html";
tryFiles = "$uri $uri/ /${location}/index.html";
}; };
services.gatus.settings.endpoints = [ services.gatus.settings.endpoints = [