fix: typo

This commit is contained in:
Ryan Yin 2024-02-07 23:34:51 +08:00
parent a1c9ea462d
commit 4095216445
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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 的自定义配置了,示例: