hylonix/flake.nix
hylodon 9232d12f25 Added documentation about modules.
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.
2026-03-01 17:49:00 +00:00

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;
};
}