mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-12-28 17:49:08 +01:00
fix: typo
This commit is contained in:
parent
a1c9ea462d
commit
4095216445
@ -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:
|
||||
|
||||
|
@ -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 的自定义配置了,示例:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user