diff --git a/machines/web01/static/default.nix b/machines/web01/static/default.nix index 62fb944..3454b5d 100644 --- a/machines/web01/static/default.nix +++ b/machines/web01/static/default.nix @@ -1,4 +1,9 @@ -{ lib, ... }: +{ + lib, + pkgs, + sources, + ... +}: let inherit (lib) recursiveUpdate; @@ -17,5 +22,11 @@ in { services.nginx.virtualHosts = recursiveUpdate (builtins.mapAttrs mkVhost websites) { "eleves.dgnum.eu".locations."/".tryFiles = "$uri $uri/index.html /fr/$uri /en/$uri /fr/index.html"; + + "simi.normalesup.eu" = { + enableACME = true; + forceSSL = true; + root = (import sources.simiweb { inherit pkgs; }).site; + }; }; } diff --git a/npins/sources.json b/npins/sources.json index 823126c..3eab297 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -130,6 +130,17 @@ "url": "https://github.com/cachix/pre-commit-hooks.nix/archive/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf.tar.gz", "hash": "0gj03fzsqcybzr4shj7x62l0xc34w20zhphd2jg7sd2rxaw42x23" }, + "simiweb": { + "type": "Git", + "repository": { + "type": "Git", + "url": "https://git.dgnum.eu/jmarquet/simiweb" + }, + "branch": "master", + "revision": "060d7f8c77355a968cfb76d22c2a60bc7100d7fb", + "url": null, + "hash": "0j4v5v3i269mpypm5h0n7w7mi2fnimyh3v2dd5d63f9s3444s0yy" + }, "wp4nix": { "type": "Git", "repository": { @@ -144,4 +155,4 @@ } }, "version": 3 -} +} \ No newline at end of file