Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos-manager needs manual.json.enable = true #6

Open
Mic92 opened this issue May 1, 2020 · 6 comments
Open

nixos-manager needs manual.json.enable = true #6

Mic92 opened this issue May 1, 2020 · 6 comments

Comments

@Mic92
Copy link
Contributor

Mic92 commented May 1, 2020

.nix-profile/share/doc/home-manager/options.json is not created by default.
If the file does not exists, nixos-manager fails to start.

@pmiddend
Copy link
Owner

pmiddend commented May 2, 2020

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. :)

@Mic92
Copy link
Contributor Author

Mic92 commented May 11, 2020

I think this derivation is not exposed yet. However @rycee could help to support it.

@rycee
Copy link

rycee commented May 11, 2020

@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.

@Mic92
Copy link
Contributor Author

Mic92 commented May 11, 2020

@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.

@rycee
Copy link

rycee commented Jul 5, 2020

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?

@Mic92
Copy link
Contributor Author

Mic92 commented Jul 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants