-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Anti pattern: nix-channel command #16
Comments
This was linked in an answer about "channels being phased out". There was recently a user asking questions on the NixOS IRC channel, confused about what "channels being phased-out" meant. As this article is part of the website, this it not exactly great. This is giving out a message that officially something is decided here, while I don't even know where to start looking for a citation about that. Furthermore, the link "Channels" points to the NixOS wiki article that is more about the Hydra process of marking revisions as good and tested than the What was the meaning of that note? Is Hydra being phased out? (I guess not :)) Is it about |
Until I have time to write about channels, beginners have to blindly believe they are better off not using channels. The constraint here is my time, but this is OSS project so everyone is welcome to contribute :) |
Yes, I understand it's OSS and everyone is welcome to contribute. The problem I have is I don't know where you are going off with that thought. If I knew what you were going for, I wouldn't mind proposing changes. This is currently used on the official website. So this leaves kind of a weird unfinished thought about a tool that is part of the tool, and distro! There is no announcement of the sort, but it's stated that it's being phased out, but nothing about what replaces it. cc @garbas |
It's possible to avoid channels without flakes, although flakes will make that a lot simpler. https://nix.dev/reference/pinning-nixpkgs.html offers solutions, although it's not complete nor structured (yet) well. |
So I'm going to collect here all the reasons channels are an anti-pattern:
So I see two simple alternatives that exists today by managing Nix sources via source control: a) Either use b) Or you let git version nixpkgs source, by either: pinning the revision or managing its lifecycle using niv or flakes |
Even worse, machine-or-user-or-both-global. If only it was global; you ssh somewhere and your channel may as well not exist. Am I thinking too big? :)
It appears like only |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/how-do-i-run-nix-shell-with-a-package-from-my-own-new-channel/44242/1 |
The text was updated successfully, but these errors were encountered: