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: set nixos in nixPath #47206

Merged
merged 1 commit into from Sep 23, 2018

Conversation

matthewbauer
Copy link
Member

This makes using the nixos channel work out of the box with the new
Nix commands. For example:

$ nix run nixos.firefox -c firefox

Fixes #46536

This makes using the nixos channel work out of the box with the new
Nix commands. For example:

$ nix run nixos.firefox -c firefox

Fixes NixOS#46536
@oxij
Copy link
Member

oxij commented Sep 23, 2018 via email

@matthewbauer
Copy link
Member Author

nixos == nixpkgs, is this by design?

Yes I think that makes sense here.

The original Nix 1.0 commands would read the directory for $HOME/.nix-defexpr/channels and set nixos=$HOME/.nix-defexpr/channels/nixos and nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs. This doesn't happen with the Nix 2.0 commands like nix run. I think this is by design. Either way it seems easiest to just do it this way for now.

@matthewbauer matthewbauer added the 9.needs: port to stable A PR needs a backport to the stable release. label Sep 23, 2018
@matthewbauer matthewbauer merged commit cc72143 into NixOS:master Sep 23, 2018
@matthewbauer matthewbauer deleted the add-nixos-to-nixpath branch February 22, 2019 04:25
@samueldr samueldr removed the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Channels are not setup correctly in 18.09 OVA
4 participants