top-level/output: add enablePrintInit option
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions

This commit is contained in:
Gutyina Gergő 2025-07-05 20:03:57 +02:00 committed by Matt Sturgeon
parent 239d331bb4
commit ef0fa015a8

View file

@ -81,6 +81,17 @@ in
'';
};
enablePrintInit = mkOption {
type = types.bool;
default = true;
example = false;
description = ''
Install a tool that shows the content of the generated `init.lua` file.
Run it using `${config.build.printInitPackage.meta.mainProgram}`.
'';
};
build = {
# TODO: `standalonePackage`; i.e. package + printInitPackage + man-docs bundled together
@ -287,10 +298,12 @@ in
with config.build;
[
nvimPackage
printInitPackage
]
++ lib.optionals config.enableMan [
manDocsPackage
]
++ lib.optionals config.enablePrintInit [
printInitPackage
];
meta.mainProgram = "nvim";
};