fix: typo

This commit is contained in:
Ryan Yin 2024-03-08 14:20:16 +08:00
parent cff6c24370
commit f3145b8143
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ Let's look at an example directly:
system = "x86_64-linux";
specialArgs = { enableFoo = true; };
modules = [
({config, lib, enableSteam ? false, ...}: {
({config, lib, enableFoo ? false, ...}: {
imports =
[
# Use lib.optionals to decide whether to import foo.nix

View File

@ -325,7 +325,7 @@ Nixpkgs 中的模块系统提供了一系列类似 `lib.mkIf` 的函数,用于
system = "x86_64-linux";
specialArgs = { enableFoo = true; };
modules = [
({config, lib, enableSteam ? false, ...}: {
({config, lib, enableFoo ? false, ...}: {
imports =
[
# 通过 lib.optionals 来决定是否导入 foo.nix