From 4320399a3e5f3afb8a867324901a559f23be8178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Gr=C3=A4fenstein?= Date: Sat, 18 Sep 2021 04:33:20 +0200 Subject: [PATCH] flake: add docs to packages output --- flake.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 486562b4..3114798e 100644 --- a/flake.nix +++ b/flake.nix @@ -18,9 +18,14 @@ darwinModules.home-manager = import ./nix-darwin; darwinModule = self.darwinModules.home-manager; - packages = forAllSystems (system: { - home-manager = nixpkgsFor.${system}.callPackage ./home-manager { }; - }); + packages = forAllSystems (system: + let docs = import ./docs { pkgs = nixpkgsFor.${system}; }; + in { + home-manager = nixpkgsFor.${system}.callPackage ./home-manager { }; + docs-html = docs.manual.html; + docs-manpages = docs.manPages; + docs-json = docs.options.json; + }); defaultPackage = forAllSystems (system: self.packages.${system}.home-manager);