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
services.lorri.enable
creates a service that doesn't see my channels
#1265
Comments
Do you mean nixpkgs channel? Did you see the option |
I'm on nixOS, though manage my HM "per user" in |
And yes, I'm talking about Under "normal" circumstances I access the systems channel as
|
Could you please try to exchange your home-manager with this one? |
I imagine this is related to
where |
You could of course directly set it in the To make in dynamic (and impure) you can use |
Thanks, adding to Perhaps this can be abstracted behind another option? PS: Feel free to close if you consider that abstraction a "wont-fix". |
A own option for this would be great. It would not destroy the current setting of the environment, and also we could default to a sane option like the default path of channels. This would make it all pure, if we don't have to use builtins.readEnv. Will see if a have the time to create a PR. Are there other services which needs this environment variable? Then we should make it a global option |
I suspect the best solution would be set Alternatively, I think one could use environment.d. |
Is PAM forwarded into systemd? |
To use the |
Anyhow, doing so, works for me. |
@rycee Do you thing a PR to pass the NIX_PATH as a parameter to modules/services/lorri.nix would be useful ? |
I think it is a better approach to run |
@Kloenk Yeah, I believe PAM sets the environment variables before the systemd user session starts. You should see the values it sets by running $ systemctl --user show-environment | grep NIX_PATH So I suspect the best course of action would be to see why NixOS doesn't add the user's channels to |
@rycee I tried what you suggest but it fails:
|
Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesIf you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
The
lorri daemon
started through the created service uses the systems channel (20.03) rather than my users (unstable).If though I temporarily disable the systemd managed
lorri daemon
and start one in a shell, this deamon uses the correct channel.The text was updated successfully, but these errors were encountered: