From 409521644535851e01fdab9cd732150b0c172b63 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 7 Feb 2024 23:34:51 +0800 Subject: [PATCH] fix: typo --- docs/other-usage-of-flakes/module-system.md | 2 +- docs/zh/other-usage-of-flakes/module-system.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/other-usage-of-flakes/module-system.md b/docs/other-usage-of-flakes/module-system.md index cbe2428..83b5fa1 100644 --- a/docs/other-usage-of-flakes/module-system.md +++ b/docs/other-usage-of-flakes/module-system.md @@ -134,7 +134,7 @@ Then, in the `config` section, based on the values declared in these three varia - This is achieved using `lib.mkIf`. - Otherwise, - Add `programs.foo.package` to `home.packages` to install it in the user environment. - - Write the value of `programs.foo.extraConfig` to `~/.config/foo/foorc`. + - Write the value of `programs.foo.extraConfig` to `~/.config/foo/foorc`. This way, we can import this module in another Nix file and achieve custom configuration for `foo` by setting the `options` defined here. For example: diff --git a/docs/zh/other-usage-of-flakes/module-system.md b/docs/zh/other-usage-of-flakes/module-system.md index 38bf38b..866e5dd 100644 --- a/docs/zh/other-usage-of-flakes/module-system.md +++ b/docs/zh/other-usage-of-flakes/module-system.md @@ -141,7 +141,7 @@ in { - 这是借助 `lib.mkIf` 实现的。 - 否则 - 将 `programs.foo.package` 添加到 `home.packages` 中,以将其安装到用户环境中。 - - 将 `programs.foo.extraConfig` 的值写入到 `~/.config/foo/foorc` 中。 + - 将 `programs.foo.extraConfig` 的值写入到 `~/.config/foo/foorc` 中。 这样,我们就可以在另一个 nix 文件中导入这个模块,并通过设置这里定义的 `options` 来实现对 foo 的自定义配置了,示例: