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
|
||||
# flake.nix
|
||||
let
|
||||
flakeAssembly = import ./flake {
|
||||
flake = import ./flake {
|
||||
inherit inputs self;
|
||||
lib = nixpkgs.lib;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = flakeAssembly.mkHosts (self + "/hosts");
|
||||
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||
}
|
||||
```
|
||||
|
||||
@@ -224,8 +224,8 @@ Avoid:
|
||||
|
||||
```nix
|
||||
{
|
||||
lib = flakeAssembly;
|
||||
nixosConfigurations = flakeAssembly.mkHosts (self + "/hosts");
|
||||
lib = flake;
|
||||
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||
}
|
||||
```
|
||||
|
||||
@@ -233,6 +233,6 @@ Use:
|
||||
|
||||
```nix
|
||||
{
|
||||
nixosConfigurations = flakeAssembly.mkHosts (self + "/hosts");
|
||||
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user