feat: add links - flakes tutorials

This commit is contained in:
Ryan Yin 2023-12-05 10:20:42 +08:00
parent 4f60d3ccc8
commit 489a6a29b3
3 changed files with 19 additions and 0 deletions

View File

@ -42,6 +42,15 @@ The following are classic Nix commands and associated concepts that are no longe
> NOTE: `nix-env -qa` may still be useful in some cases, as it returns all packages installed in the system. > NOTE: `nix-env -qa` may still be useful in some cases, as it returns all packages installed in the system.
## Flakes Tutorials
I won't go into too much detail here, please refer to the following documents:
- [Nix Flakes, Part 1: An introduction and tutorial (Eelco Dolstra, 2020)](https://www.tweag.io/blog/2020-05-25-flakes/)
- [Nix Flakes, Part 2: Evaluation caching (Eelco Dolstra, 2020)](https://www.tweag.io/blog/2020-06-25-eval-cache/)
- [Nix Flakes, Part 3: Managing NixOS systems (Eelco Dolstra, 2020)](https://www.tweag.io/blog/2020-07-31-nixos-flakes/)
- [Practical Nix Flakes](https://serokell.io/blog/practical-nix-flakes)
## When Will Flakes Be Stabilized? ## When Will Flakes Be Stabilized?
I delved into some details regarding Flakes: I delved into some details regarding Flakes:

View File

@ -310,3 +310,4 @@ Nix will prioritize searching for cached packages from the domestic mirror sourc
> If your system's hostname is not `nixos-test`, you need to modify the name of `nixosConfigurations` in `flake.nix`, or use `--flake /etc/nixos#nixos-test` to specify the configuration name. > If your system's hostname is not `nixos-test`, you need to modify the name of `nixosConfigurations` in `flake.nix`, or use `--flake /etc/nixos#nixos-test` to specify the configuration name.

View File

@ -47,6 +47,15 @@ Nix 于 2020 年推出了 `nix-command` & `flakes` 两个新特性,它们提
> 可能也就 `nix-env -qa` 这个命令偶尔还会有些用了,它返回当前系统下安装的所有软件包。 > 可能也就 `nix-env -qa` 这个命令偶尔还会有些用了,它返回当前系统下安装的所有软件包。
## Flakes 入门
我就不多介绍了,请直接参考如下文档:
- [Nix Flakes, Part 1: An introduction and tutorial (Eelco Dolstra, 2020)](https://www.tweag.io/blog/2020-05-25-flakes/)
- [Nix Flakes, Part 2: Evaluation caching (Eelco Dolstra, 2020)](https://www.tweag.io/blog/2020-06-25-eval-cache/)
- [Nix Flakes, Part 3: Managing NixOS systems (Eelco Dolstra, 2020)](https://www.tweag.io/blog/2020-07-31-nixos-flakes/)
- [Practical Nix Flakes](https://serokell.io/blog/practical-nix-flakes)
## Flakes 何时会成为稳定特性? {#when-will-flakes-stablized} ## Flakes 何时会成为稳定特性? {#when-will-flakes-stablized}
我深入了解了下 Flakes 现状与未来计划相关的资料,大概有这些: 我深入了解了下 Flakes 现状与未来计划相关的资料,大概有这些: