docs(nix): use actual flake binding name
This commit is contained in:
10
docs/nix.md
10
docs/nix.md
@@ -204,13 +204,13 @@ Use:
|
|||||||
```nix
|
```nix
|
||||||
# flake.nix
|
# flake.nix
|
||||||
let
|
let
|
||||||
flakeAssembly = import ./flake {
|
flake = import ./flake {
|
||||||
inherit inputs self;
|
inherit inputs self;
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = flakeAssembly.mkHosts (self + "/hosts");
|
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -224,8 +224,8 @@ Avoid:
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
lib = flakeAssembly;
|
lib = flake;
|
||||||
nixosConfigurations = flakeAssembly.mkHosts (self + "/hosts");
|
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -233,6 +233,6 @@ Use:
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
nixosConfigurations = flakeAssembly.mkHosts (self + "/hosts");
|
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user