mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-22 08:03:26 +01:00
feat: sync content in English & Chinese
This commit is contained in:
parent
3398689b90
commit
351b649294
@ -35,6 +35,8 @@
|
||||
|
||||
# 使用 `dir` 参数指定某个子目录
|
||||
nixpkgs.url = "github:foo/bar?dir=shu";
|
||||
}
|
||||
};
|
||||
|
||||
outputs = { self, ... }@inputs: { ... };
|
||||
}
|
||||
```
|
||||
|
@ -18,8 +18,12 @@
|
||||
NixOS Wiki 中给出的使用案例:
|
||||
|
||||
```nix
|
||||
{ self, ... }@inputs:
|
||||
{
|
||||
inputs = {
|
||||
# ......
|
||||
};
|
||||
|
||||
outputs = { self, ... }@inputs: {
|
||||
# Executed by `nix flake check`
|
||||
checks."<system>"."<name>" = derivation;
|
||||
# Executed by `nix build .#<name>`
|
||||
@ -62,5 +66,6 @@ NixOS Wiki 中给出的使用案例:
|
||||
};
|
||||
# Used by `nix flake init -t <flake>`
|
||||
templates.default = { path = "<store-path>"; description = ""; };
|
||||
};
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user