- cross-posted to:
- libre_software@lemmy.ml
- opensource@lemmy.ml
- nix@lemmy.ml
- nixos@lemmy.ml
- cross-posted to:
- libre_software@lemmy.ml
- opensource@lemmy.ml
- nix@lemmy.ml
- nixos@lemmy.ml
cross-posted from: https://group.lt/post/30446
1652 contributors, who authored 30371 commits since the previous release.
NixOS is already known as the most up to date distribution while also being the distribution with the most packages.
This release saw 16678 new packages and 14680 updated packages in nixpkgs. We also removed 2812 packages in an effort to keep the package set maintainable and secure. In addition to packages the NixOS distribution also features modules and tests that make it what it is. This release brought 91 new modules and removed 20. In that process we added 1322 options and removed 487.
https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html
or man nix3-flake.
For a NixOS flake example: https://git.sr.ht/~misterio/nix-config/tree/main/item/flake.nix
For specific language examples https://github.com/NixOS/templates (which you can
nix flake new my-project-name --template "templates#template-name"
. For real examples https://sourcegraph.com/search?q=context:global+.*+file:flake.nix+lang:Nix&patternType=regexp&sm=1here a pytorch example when I was learning Flakes
It is not. Once you understand flakes, you will see how much better it is. If you do not understand why flakes exist to begin with, read https://www.tweag.io/blog/2020-05-25-flakes/
also use in conjunction with flakes:
I read the article, flakes sound like an interesting solution that could make it a lot easier to contribute to open source projects (which reportedly often causes an increase in contributions).
With that said, nix-channel still seems like a simpler (by simpler i mean easier to learn and use) at least for simple use case of replacing flatpak , I still don’t know how to replace nix-channel with it, I am not really trying hard but the bottom line it is hard to compete with the ease of use/learning of just doing:
✨✨✨✨✨✨✨✨✨✨✨✨
Where do i put the flake file? (another disadvantage, an implicit dependency).
Also does it get added to “~/.nix-profile/bin/” ? Does it use a binary cache (do every package in nixpkgs has to be rebuilt from source?)
For nixos
/etc/nixos/flake.nix
. Example https://git.sr.ht/~misterio/nix-config/tree/main/item/flake.nixFor home-manager see https://nix-community.github.io/home-manager/index.html#ch-nix-flakes
For individual projects like that Pytorch one you can put on any git repo.
If you use same nixpkgs revision as the one you currently have using channels nix should not rebuild derivations.