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

Activate home-manager specialisation #80

Open
ErrorNoInternet opened this issue Apr 5, 2024 · 4 comments · May be fixed by #109
Open

Activate home-manager specialisation #80

ErrorNoInternet opened this issue Apr 5, 2024 · 4 comments · May be fixed by #109

Comments

@ErrorNoInternet
Copy link

nh os switch -S should maybe also activate the home-manager specialization with the same name (probably behind a flag)? Currently I have to run home-manager generations, copy the store path of the latest generation, then manually run /nix/store/...-home-manager-generation/specialisation/<name/activate.

One caveat is nix-community/home-manager#4073 though.

@viperML
Copy link
Owner

viperML commented Apr 5, 2024

nh os doesn't activate home-manager specialisations, that is bound to the nixos activation script and the home-manager module implementation.

I know that the nh home codepath doesn't implement home-manager standalone's specialisations, but you are asking about a different thing

@viperML
Copy link
Owner

viperML commented Apr 5, 2024

By the way, if you are using HM as a nixos module, can't you just leverage nixos's specialisations instead of using HM's?

@ErrorNoInternet
Copy link
Author

Ah yeah it seems to actually work. Just did home-manager.users.* = {} in a NixOS specialisation, thanks! Should we keep this open for standalone home-manager specialisations?

@viperML
Copy link
Owner

viperML commented Apr 5, 2024

Yes

@daschw daschw linked a pull request May 12, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants