fix: artwork in introduction

This commit is contained in:
Ryan Yin 2023-07-08 16:00:22 +08:00
parent 16fd2a5e64
commit 184e047100
5 changed files with 33 additions and 3 deletions

View File

@ -12,8 +12,21 @@
- It is possible to roll back to any previous system state, and NixOS even includes all old versions in the boot options by default, ensuring the ability to easily revert changes. Consequently, Nix is regarded as one of the most stable package management approaches.
- **No Dependency Conflict Issues**
- Each software package in Nix has a unique hash, which is incorporated into its installation path, allowing multiple versions to coexist.
- **The community is active, with a diverse range of third-party projects**
- The official package repository, nixpkgs, has numerous contributors, and many people share their Nix configurations. Exploring the NixOS ecosystem is an exciting experience, akin to discovering a new continent.
The community is active, with a diverse range of third-party projects. The official package repository, nixpkgs, has numerous contributors, and many people share their Nix configurations. Exploring the NixOS ecosystem is an exciting experience, akin to discovering a new continent.
<figure>
<img src="/nixos-bootloader.avif">
<figcaption>
<h4 align="center">
All historical versions are listed in the boot options of NixOS. <br>
Image from
<a href="https://discourse.nixos.org/t/how-to-make-uefis-grub2-menu-the-same-as-bioss-one/10074" target="_blank" rel="noopener noreferrer">
NixOS Discourse - 10074
</a>
</h4>
</figcaption>
</figure>
## Disadvantages of NixOS

View File

@ -1,3 +1,5 @@
![](/nixos-and-flakes-book.webp)
# Introduction to Nix & NixOS
Nix is a declarative package manager that enables users to specify the desired system state in configuration files, and it takes responsibility for achieving that state.

Binary file not shown.

View File

@ -12,7 +12,20 @@
- 可以随时回滚到任一历史环境NixOS 甚至默认将所有旧版本都加入到了启动项,确保系统滚挂了也能随时回退。所以 Nix 也被认为是最稳定的包管理方式。
- **没有依赖冲突问题**
- 因为 Nix 中每个软件包都拥有唯一的 hash其安装路径中也会包含这个 hash 值,因此可以多版本共存。
- 社区很活跃,第三方项目也挺丰富,官方包仓库 nixpkgs 贡献者众多,也有很多人分享自己的 Nix 配置,一遍浏览下来,整个生态给我一种发现新大陆的兴奋感。
- **社区很活跃,第三方项目也挺丰富**
- 官方包仓库 nixpkgs 贡献者众多,也有很多人分享自己的 Nix 配置,一遍浏览下来,整个生态给我一种发现新大陆的兴奋感。
<figure>
<img src="/nixos-bootloader.avif">
<figcaption>
<h4 align="center">
NixOS 启动项中列出了所有历史版本,图来自
<a href="https://discourse.nixos.org/t/how-to-make-uefis-grub2-menu-the-same-as-bioss-one/10074" target="_blank" rel="noopener noreferrer">
NixOS Discourse - 10074
</a>
</h4>
</figcaption>
</figure>
## 缺点 {#disadvantages}

View File

@ -1,3 +1,5 @@
![](/nixos-and-flakes-book.webp)
# Nix 与 NixOS 简介
Nix 是一个声明式的软件包管理器,用户需要通过某些配置声明好期望的环境状态,而 Nix 负责达成这个目标。
@ -31,4 +33,4 @@ Nix 是一个声明式的软件包管理器,用户需要通过某些配置声
NixOS 的回滚能力给了我非常大的底气,我现在再也不用怕把系统搞挂了(挂了直接回滚就恢复了),于是我又在 NixOS 尝试了许多新鲜玩意儿!
在以前 EndeavourOS 上我肯定是不太敢这么玩的,因为万一要是把系统玩出问题了,就必须手动修复系统状态,那可是相当麻烦。
这就是我选择 NixOS 的原因。
这就是我选择 NixOS 的原因。