From ce7c78d196c0e03b3f6c9316494ad59ae5f8d584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Tue, 2 Jan 2024 12:13:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20(hydrogen/services/nginx)?= =?UTF-8?q?=20flakify=20TP-reinforcement-learning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 27 +++++++++++++++++++ flake.nix | 6 +++++ .../nginx/n7/TP-reinforcement-learning.nix | 15 +++++------ hosts/hydrogen/services/nginx/n7/default.nix | 2 +- 4 files changed, 40 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index d3216fb..b196a67 100644 --- a/flake.lock +++ b/flake.lock @@ -26,6 +26,32 @@ "url": "https://git.fainsin.bzh/ENSEEIHT/TP-calcul-parallele" } }, + "TP-reinforcement-learning": { + "inputs": { + "flake-parts": [ + "flake-parts" + ], + "nixpkgs": [ + "nixpkgs" + ], + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1704193318, + "narHash": "sha256-Sp2rNrb/LJVU+kjsGPwu30521x5zS2X0xNi0BerE/To=", + "ref": "refs/heads/master", + "rev": "e5623592cca97b6e7f78c6c2e5986febe01f99b0", + "revCount": 3, + "type": "git", + "url": "https://git.fainsin.bzh/ENSEEIHT/TP-reinforcement-learning" + }, + "original": { + "type": "git", + "url": "https://git.fainsin.bzh/ENSEEIHT/TP-reinforcement-learning" + } + }, "agenix": { "inputs": { "agenix": "agenix_2", @@ -855,6 +881,7 @@ "root": { "inputs": { "TP-calcul-parallele": "TP-calcul-parallele", + "TP-reinforcement-learning": "TP-reinforcement-learning", "agenix": "agenix", "catppuccin-alacritty": "catppuccin-alacritty", "catppuccin-bat": "catppuccin-bat", diff --git a/flake.nix b/flake.nix index 3c4fb8f..d91bba9 100644 --- a/flake.nix +++ b/flake.nix @@ -126,6 +126,12 @@ inputs.flake-parts.follows = "flake-parts"; inputs.systems.follows = "systems"; }; + TP-reinforcement-learning = { + url = "git+https://git.fainsin.bzh/ENSEEIHT/TP-reinforcement-learning"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-parts.follows = "flake-parts"; + inputs.systems.follows = "systems"; + }; }; nixConfig = { diff --git a/hosts/hydrogen/services/nginx/n7/TP-reinforcement-learning.nix b/hosts/hydrogen/services/nginx/n7/TP-reinforcement-learning.nix index 937e3cf..722d9e2 100644 --- a/hosts/hydrogen/services/nginx/n7/TP-reinforcement-learning.nix +++ b/hosts/hydrogen/services/nginx/n7/TP-reinforcement-learning.nix @@ -1,10 +1,7 @@ -{pkgs, ...}: let - pages = pkgs.fetchgit { - url = "https://git.fainsin.bzh/ENSEEIHT/TP-reinforcement-learning"; - rev = "cfd97e864894af07ba768d8fc9382ddfcc09400f"; # pages - sha256 = "0mvj5gxj42hf2zn2yrk8fmgibnli8r1inwghnkj16vn9j48rgkn8"; - }; -in { - alias = "${pages}/"; - index = "index.html"; +{ + inputs, + system, + ... +}: { + alias = inputs.TP-reinforcement-learning.packages.${system}.notebooks + "/"; } diff --git a/hosts/hydrogen/services/nginx/n7/default.nix b/hosts/hydrogen/services/nginx/n7/default.nix index 8033630..58287c4 100644 --- a/hosts/hydrogen/services/nginx/n7/default.nix +++ b/hosts/hydrogen/services/nginx/n7/default.nix @@ -26,7 +26,7 @@ } // { "/TP-calcul-parallele/" = import ./TP-calcul-parallele.nix {inherit inputs system;}; - "/TP-reinforcement-learning/" = import ./TP-reinforcement-learning.nix pkgs; + "/TP-reinforcement-learning/" = import ./TP-reinforcement-learning.nix {inherit inputs system;}; "/TP-traitement-audio-visuel/" = import ./TP-traitement-audio-visuel.nix pkgs; }; };