feat: minor updates

This commit is contained in:
Ryan Yin 2023-07-30 22:45:04 +08:00
parent a1cfd3b8f7
commit c69a2db6ba
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,10 @@ NixOS is a highly distinctive Linux distribution built upon the Nix package mana
One of NixOS's major advantages over other distributions lies in its reproducibility, allowing users to replicate consistent system environments across multiple machines, thanks to its declarative configuration.
While NixOS is powerful, its strength also comes with increased system complexity, making it more challenging for newcomers. On the one hand, the knowledge accumulated on other Linux distributions is not easily transferable to NixOS. On the other hand, NixOS has long been criticized for its scattered and outdated official and community documentation, often deterring newcomers. These issues have troubled many NixOS beginners.
While NixOS is powerful, its strength also comes with increased system complexity, making it more challenging for newcomers.
On the one hand, the knowledge accumulated on other Linux distributions is not easily transferable to NixOS.
On the other hand, NixOS has long been criticized for its scattered and outdated official and community documentation.
These issues have troubled many NixOS beginners.
Speaking of the experimental feature of the Nix package manager called Flakes. Inspired by package managers like npm and cargo, Flakes use `flake.nix` to record all external dependencies and `flake.lock` to lock their versions. This significantly enhances the reproducibility and composability of the Nix package manager and NixOS configurations. Flakes' advantages have made it widely popular within the community. According to official surveys, over half of the new Nix repositories created on GitHub now utilize Flakes, making the traditional Nix configuration method less prevalent.

View File

@ -7,7 +7,8 @@ NixOS 是个非常特殊的 Linux 发行版,它构建在 Nix 包管理器之
NixOS 相比其他发行版最大的优势,是它的可复现能力(即在多台机器上复现出一致的系统环境的能力)以及声明式配置。
NixOS 很强大,但它的强大也带来了系统复杂度的提升,提高了使用门槛。
一方面你在 Linux 发行版上积累很多经验很难在 NixOS 上复用,另一方面 NixOS 又一直因为官方文档与社区文档的散乱陈旧而饱受诟病,劝退新手,这些问题都困扰着许多 NixOS 新手。
一方面你在 Linux 发行版上积累很多经验很难在 NixOS 上复用,另一方面 NixOS 又一直因为官方文档与社区文档的散乱陈旧而饱受诟病。
这些问题都困扰着许多 NixOS 新手。
再说到 Nix 包管理器的实验特性 Flakes它借鉴了 npm/cargo 等包管理器的设计思路,使用 flake.nix 记录所有外部依赖项,使用 flake.lock 锁定所有依赖的版本,极大地增强了 Nix 包管理器及 NixOS 的可复现能力跟配置可组合能力。
因为 Flakes 的好处很大,社区非常喜欢它。据官方调查,目前 GitHub 新建的 nix 仓库超过半数都使用了 Flakes传统的 Nix 配置方式已经不再是主流。