config/profiles/web/docs/nixpkgs.nix

27 lines
780 B
Nix
Raw Normal View History

2023-02-26 06:11:55 +01:00
{ config, pkgs, lib, inputs, ... }:
let
# https://stackoverflow.com/a/60232211
nixpkgs-manual = import "${inputs.nixpkgs}/doc" { inherit pkgs; };
nixos-manual = (import "${inputs.nixpkgs}/nixos/release.nix" { inherit (inputs) nixpkgs; }).manualHTML.${config.nixpkgs.system};
in
{
services.docs-to-host.docs = [
2023-02-26 17:32:54 +01:00
{
dirname = "nix-manual";
path = "${pkgs.nix.doc}/share/doc/nix/manual";
desc = "Official nixpkgs manual";
2023-02-26 17:32:54 +01:00
}
2023-02-26 06:11:55 +01:00
{
dirname = "nixpkgs-manual";
basename= "manual.html";
path = "${nixpkgs-manual}/share/doc/nixpkgs";
desc = "Official nixpkgs manual";
2023-02-26 06:11:55 +01:00
}
{
dirname = "nixos-manual";
path = "${nixos-manual}/share/doc/nixos";
desc = "Official Nixos manual";
2023-02-26 06:11:55 +01:00
}
];
}