feat: sync content in English & Chinese

This commit is contained in:
Ryan Yin 2023-07-07 14:25:37 +08:00
parent 3398689b90
commit 351b649294
2 changed files with 48 additions and 41 deletions

View File

@ -35,6 +35,8 @@
# 使用 `dir` 参数指定某个子目录 # 使用 `dir` 参数指定某个子目录
nixpkgs.url = "github:foo/bar?dir=shu"; nixpkgs.url = "github:foo/bar?dir=shu";
} };
outputs = { self, ... }@inputs: { ... };
} }
``` ```

View File

@ -18,8 +18,12 @@
NixOS Wiki 中给出的使用案例: NixOS Wiki 中给出的使用案例:
```nix ```nix
{ self, ... }@inputs:
{ {
inputs = {
# ......
};
outputs = { self, ... }@inputs: {
# Executed by `nix flake check` # Executed by `nix flake check`
checks."<system>"."<name>" = derivation; checks."<system>"."<name>" = derivation;
# Executed by `nix build .#<name>` # Executed by `nix build .#<name>`
@ -62,5 +66,6 @@ NixOS Wiki 中给出的使用案例:
}; };
# Used by `nix flake init -t <flake>` # Used by `nix flake init -t <flake>`
templates.default = { path = "<store-path>"; description = ""; }; templates.default = { path = "<store-path>"; description = ""; };
};
} }
``` ```