Skip to content

Commit

Permalink
home-manager: add documentation to root default.nix
Browse files Browse the repository at this point in the history
This adds documentation related packages to default.nix to allow
building documentation separately from building a Home Manager
configuration.
  • Loading branch information
DamienCassou authored and rycee committed Jun 11, 2020
1 parent 2209d3c commit 6f683d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{ pkgs ? import <nixpkgs> { } }:

rec {
docs = with import ./doc { inherit pkgs; }; {
html = manual.html;
manPages = manPages;
json = options.json;
};

home-manager = pkgs.callPackage ./home-manager { path = toString ./.; };

install =
Expand Down
5 changes: 3 additions & 2 deletions doc/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
{ pkgs

# Note, this should be "the standard library" + HM extensions.
lib, pkgs }:
, lib ? import ../modules/lib/stdlib-extended.nix pkgs.lib }:

let

Expand Down

0 comments on commit 6f683d9

Please sign in to comment.