1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/docs
bruce oberg 64c49b1aa5 home-manager: fix option subcommand
- calls nix-instatiate instead of nixos-option (using nix-option's underlying nix script).
- loops over options to display since nixos-option can only process a single option.
- passes through the --recursive flag from nixos-option. and includes --help and man page for the flag.

details:

nixos-option was changed from a C++ command to a shell script that feeds a nix script (with arguments) to nix-instatiate. in the process, the --config_expr and --options_expr we once passed to nixos-option were removed.

without changing the nixos-option shell script, we have no may to override the arguments to the nixos-option nix script.

luckily, we can use our modulesExpr as a direct argument to the new nixos-option nix script.

unluckily, the nix script does not accept multiple options per instantiation. so we are also looping through the given options ourselves and feeding them each to nixos-option's nix script.

the nixos-option shell and nix scripts are in different places in the nix store, so we have to search the store for the nix script given the location of the shell script.

also, the nixos-option nix script wants a 'recursive' flag, so we now honor that flag for the home-manager option subcommand.
2025-11-03 09:12:22 -06:00
..
manual docs: fix typo in collision.md 2025-08-29 14:46:26 -05:00
release-notes docs: add note of Synthing tray option removal 2025-09-26 10:47:47 +02:00
static docs: minor manual style fix 2025-07-28 11:04:16 +02:00
default.nix docs: add a poison module 2025-07-27 07:52:42 +02:00
flake.lock docs/flake.nix: add flake outputs for docs 2025-04-07 08:15:20 -07:00
flake.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
home-configuration-nix-footer.5 docs: use nixos-render-docs 2023-12-07 21:28:16 +09:00
home-configuration-nix-header.5 docs: extend home-configuration.nix header 2023-12-07 21:28:18 +09:00
home-manager-manual.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
home-manager.1 home-manager: fix option subcommand 2025-11-03 09:12:22 -06:00
html-open-tool.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
options.html docs: add redirect from the previous options.html 2024-06-09 13:09:00 +02:00