NixOS and Home Manager both automatically generate documentation using 'nixosOptionsDoc', and now so does hylonix. I can't find any standard reference for where this documentation should go, so I have created a doc attribute in the flake.
24 lines
650 B
Nix
24 lines
650 B
Nix
{
|
|
description = "hylonix: Nix configurations from hylodon.";
|
|
|
|
inputs = {
|
|
nixos.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixos, ... }:
|
|
let
|
|
forAllSystems = nixos.lib.genAttrs nixos.lib.systems.flakeExposed;
|
|
in
|
|
{
|
|
docs = forAllSystems (system: nixos.legacyPackages.${system}.callPackage ./docs { inherit self; });
|
|
|
|
formatter = forAllSystems (system: nixos.legacyPackages.${system}.nixfmt-tree);
|
|
|
|
hmModules = import ./modules/home-manager self.lib.hylonix;
|
|
|
|
lib = import ./lib (nixos.lib // self.lib);
|
|
|
|
nixosModules = import ./modules/nixos self.lib.hylonix;
|
|
};
|
|
}
|