mirror of
https://github.com/hyprspace/hyprspace.git
synced 2026-09-12 19:51:07 +05:00
* docs: switch to ndg
* flake.lock: Update
Flake lock file updates:
• Added input 'ndg':
'github:feel-co/ndg/d678855cdd0385b1bd78adf3456d072642317d6a?narHash=sha256-gJcybEQZa5Jdh3MSgvGLqiqQFRTZ3IxQFvVIsJecbno%3D' (2026-04-14)
• Added input 'ndg/nixpkgs':
'https://releases.nixos.org/nixos/unstable/nixos-26.05pre972949.6201e203d095/nixexprs.tar.xz?lastModified=1775036866&narHash=sha256-ByAX1LkhCwZ94%2BKnFAmnJSMAvui7kgCxjHgUHsWAbfI%3D&rev=6201e203d09599479a3b3450ed24fa81537ebc4e' (2026-04-01)
24 lines
617 B
Nix
24 lines
617 B
Nix
{
|
|
lib,
|
|
runCommand,
|
|
nixosOptionsDoc,
|
|
ndg,
|
|
hyprspace,
|
|
}:
|
|
|
|
let
|
|
modules = lib.evalModules { modules = [ ../nixos/settings.nix ]; };
|
|
|
|
optionsDoc = nixosOptionsDoc {
|
|
options = builtins.removeAttrs modules.options [ "_module" ];
|
|
transformOptions = option: builtins.removeAttrs option [ "declarations" ];
|
|
};
|
|
in
|
|
|
|
runCommand "hyprspace-docs-${hyprspace.version}" { } ''
|
|
${ndg}/bin/ndg --config-file ${./ndg.toml} \
|
|
--config input_dir=${./content} \
|
|
--config output_dir=$out/share/www/hyprspace-docs \
|
|
--config module_options=${optionsDoc.optionsJSON}/share/doc/nixos/options.json
|
|
''
|