mkFlakeDoc: move to packages output

the packages output allows us to do `nix build .#nixosOptionsDoc`.
theres also already an instantiated nixpkgs available there.
This commit is contained in:
Pacman99 2021-04-24 08:14:58 -07:00
parent f702ca1337
commit 1cd4ed136a
2 changed files with 9 additions and 1 deletions

View file

@ -81,7 +81,7 @@
"utils": "utils_2"
},
"locked": {
"narHash": "sha256-LvO5VwFNFzb2xbmgw+fWhkrRY1KMlp5vxqQU/BqS0H8=",
"narHash": "sha256-eZJ8p2u56dkLPxF7GiQLbQ6YRKHP6DoOM52G/p+M/3w=",
"path": "./lib",
"type": "path"
},

View file

@ -81,6 +81,14 @@
lib = nixpkgs.lib // lib;
};
};
packages = {
mkFlakeDoc = pkgs.writeText "mkFlakeOptions.md"
(
pkgs.nixosOptionsDoc {
inherit (lib.mkFlake.evalArgs { nixos = "nixos"; args = { }; }) options;
}
).optionsMDDoc;
};
}
);