summaryrefslogtreecommitdiff
path: root/flora
diff options
context:
space:
mode:
authorstuebinm2022-06-14 00:54:35 +0200
committerstuebinm2022-06-14 00:54:35 +0200
commit6119abda225fe14bc65ff7581640da0f435457f4 (patch)
tree2b100e9b3caa48a16add7283dc5687c6cf920879 /flora
parent79516af194d2d407cb04c85f997c58b61304ef37 (diff)
bookshelf (with gtfs books)
Diffstat (limited to '')
-rw-r--r--flora/services/blog.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/flora/services/blog.nix b/flora/services/blog.nix
index 0111f8f..15c0646 100644
--- a/flora/services/blog.nix
+++ b/flora/services/blog.nix
@@ -1,9 +1,27 @@
{ config, lib, pkgs, inputs, ... }:
+let
+ gtfsBooks = pkgs.stdenv.mkDerivation {
+ name = "gtfs-mdbooks";
+ src = inputs.gtfsBooks;
+ buildInputs = [ pkgs.mdbook ];
+ buildPhase = ''
+ ./build.sh
+ '';
+ installPhase = ''
+ mkdir -p $out
+ mv gtfs-book-html $out/gtfs
+ mv gtfs-realtime-book-html $out/gtfs-realtime
+ '';
+ };
+in
+
+
{
services.nginx.virtualHosts."stuebinm.eu" = {
enableACME = true;
forceSSL = true;
locations."/".root = import inputs.blog { inherit pkgs; };
+ locations."/bookshelf/".alias = "${gtfsBooks.outPath}/";
};
}