diff options
Diffstat (limited to 'flora/services')
-rw-r--r-- | flora/services/blog.nix | 18 |
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}/"; }; } |