nixos-manager
nixos-manager copied to clipboard
nixos-manager needs `manual.json.enable = true`
.nix-profile/share/doc/home-manager/options.json
is not created by default.
If the file does not exists, nixos-manager
fails to start.
Ah yes, thanks for the reminder. I've added a note about that to the readme. I'm keeping this issue open for some amount of time so maybe someone smart can figure out how to generate the options JSON file without reconfiguring home-manager. :)
I think this derivation is not exposed yet. However @rycee could help to support it.
@Mic92 What do you mean by "exposed". Would it be sufficient to switch the default of the manual.json.enable
option from false
to true
? I.e., that ~/.nix-profile/share/doc/home-manager/options.json
is generated by default.
@rycee I mean it would be helpful to get these options.json without having to create a profile in the first place.
One workaround is to build a dummy profile using home-manager build
and then get the options from ./result
:
$ home-manager build
$ ls -la result/home-path/share/doc/home-manager/options.json
However I think that if only the options.json has to be build, the build might be faster.
Sorry, I forgot about this issue. Some time ago it became possible to build the different doc output directly from HM's root default.nix
. For example,
$ nix-build https://github.com/rycee/home-manager/archive/master.tar.gz -A docs.json
/nix/store/rzgi5sngazifzw41z9v8qbkji17appqb-options.json
Would that be sufficient for your purposes?
Sorry, I forgot about this issue. Some time ago it became possible to build the different doc output directly from HM's root
default.nix
. For example,$ nix-build https://github.com/rycee/home-manager/archive/master.tar.gz -A docs.json /nix/store/rzgi5sngazifzw41z9v8qbkji17appqb-options.json
Would that be sufficient for your purposes?
Yes. That should be enough.