NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
373 B

7 months ago
  1. { pkgs, config, lib, ... }:
  2. with lib;
  3. let
  4. mkdocsConfig = import ./config.nix {
  5. inherit config lib;
  6. };
  7. mkdocsConfigYaml = pkgs.writeText "mkdocs.yaml" (generators.toYAML { } mkdocsConfig);
  8. in
  9. {
  10. system.build.docs = pkgs.runCommand "docs" { } ''
  11. ${pkgs.mkdocs}/bin/mkdocs build \
  12. --site-dir "$out" \
  13. --config-file "${mkdocsConfigYaml}"
  14. '';
  15. }