From 489a6a29b396eaf4a93235af9684dd4cc1d2ec29 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 5 Dec 2023 10:20:42 +0800 Subject: [PATCH] feat: add links - flakes tutorials --- docs/nixos-with-flakes/introduction-to-flakes.md | 9 +++++++++ docs/nixos-with-flakes/nixos-with-flakes-enabled.md | 1 + docs/zh/nixos-with-flakes/introduction-to-flakes.md | 9 +++++++++ 3 files changed, 19 insertions(+) diff --git a/docs/nixos-with-flakes/introduction-to-flakes.md b/docs/nixos-with-flakes/introduction-to-flakes.md index 71b5897..e2d350d 100644 --- a/docs/nixos-with-flakes/introduction-to-flakes.md +++ b/docs/nixos-with-flakes/introduction-to-flakes.md @@ -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. +## 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? I delved into some details regarding Flakes: diff --git a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md index a2eb99b..c96221b 100644 --- a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -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. + diff --git a/docs/zh/nixos-with-flakes/introduction-to-flakes.md b/docs/zh/nixos-with-flakes/introduction-to-flakes.md index 69f3c12..08b3e01 100644 --- a/docs/zh/nixos-with-flakes/introduction-to-flakes.md +++ b/docs/zh/nixos-with-flakes/introduction-to-flakes.md @@ -47,6 +47,15 @@ Nix 于 2020 年推出了 `nix-command` & `flakes` 两个新特性,它们提 > 可能也就 `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 现状与未来计划相关的资料,大概有这些: