From 3272a9ee9e89923aa182b8f7022a27f091b2a791 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 28 Jun 2023 18:06:57 +0800 Subject: [PATCH] fix: typo --- docs/advanced-topics/index.md | 2 -- docs/nixos-with-flakes/introduction-to-flakes.md | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/advanced-topics/index.md b/docs/advanced-topics/index.md index 09f7d43..85fe3fb 100644 --- a/docs/advanced-topics/index.md +++ b/docs/advanced-topics/index.md @@ -7,8 +7,6 @@ Once you're familiar with NixOS, you can explore Nix's three manuals and other d - [NixOS Manual](https://nixos.org/manual/nixos/unstable/): A user manual for NixOS, which includes configuration instructions for system-level components such as Wayland/X11 and GPU. - [nix-pills](https://nixos.org/guides/nix-pills): Nix Pills provides an in-depth explanation of how to use Nix to build software packages. It is written in a clear and understandable way and is worth reading, as it is also sufficiently in-depth. -GitHub Copilot: Here's an optimized version of the text: - Once you're familiar with Flakes, you may want to explore some advanced techniques. Here are some popular community projects to try out: - [flake-parts](https://github.com/hercules-ci/flake-parts): This project simplifies the writing and maintenance of configuration through the Module module system. diff --git a/docs/nixos-with-flakes/introduction-to-flakes.md b/docs/nixos-with-flakes/introduction-to-flakes.md index 51511dc..3257445 100644 --- a/docs/nixos-with-flakes/introduction-to-flakes.md +++ b/docs/nixos-with-flakes/introduction-to-flakes.md @@ -8,9 +8,9 @@ Flakes is one of the most significant changes the nix project has ever seen.[^2] The benefits of Flakes are obvious, and the entire NixOS community likes it very much. Currently, more than half of the users are using Flakes[^3], so we're pretty sure that Flakes will never be deprecated. -:warning: But **Flakes is still an experimental feature**, there are still some problems with it, so it is likely to introduce some breaking changes in the process of stablizing it, and it’s uncertain how greatly the breaking changes will be. +:warning: But **Flakes is still an experimental feature**, there are still some problems with it, it is likely to introduce some breaking changes in the process of stablizing it, and it’s uncertain how greatly the breaking changes will be. -Overall, I stll recommend using Flakes, as this book is written around NixOS and Flakes. However, please be prepared for potential problems caused by upcoming breaking changes. +Overall, I still recommend everyone to use Flakes, this book is also written around NixOS and Flakes after all, but please be prepared for the problems that may be caused by the upcomming breaking changes. ## Nix Flakes and Classic Nix @@ -18,8 +18,6 @@ As `nix-command` and `flakes` are still experimental features, the official docu Here are the classic Nix commands and related concepts that are no longer needed after enabling `nix-command` and `flakes`. When searching for information, you can safely ignore them: -GitHub Copilot: Here's an optimized version of the text: - 1. `nix-channel`: `nix-channel` manages software package versions through stable/unstable/test channels, similar to other package management tools such as apt/yum/pacman. 1. In Flakes, the functionality of `nix-channel` is completely replaced by `inputs` in `flake.nix`. 2. `nix-env`: `nix-env` is a core command-line tool for classic Nix used to manage software packages in the user environment.