docs(nix): match flake import examples
This commit is contained in:
14
docs/nix.md
14
docs/nix.md
@@ -93,10 +93,10 @@ import ./flake inputs
|
||||
Use:
|
||||
|
||||
```nix
|
||||
import ./flake {
|
||||
inherit inputs self;
|
||||
lib = nixpkgs.lib;
|
||||
}
|
||||
let
|
||||
inherit (nixpkgs) lib;
|
||||
in
|
||||
import ./flake { inherit lib inputs self; }
|
||||
```
|
||||
|
||||
### Keep NixOS module interfaces open
|
||||
@@ -204,10 +204,8 @@ Use:
|
||||
```nix
|
||||
# flake.nix
|
||||
let
|
||||
flake = import ./flake {
|
||||
inherit inputs self;
|
||||
lib = nixpkgs.lib;
|
||||
};
|
||||
inherit (nixpkgs) lib;
|
||||
flake = import ./flake { inherit lib inputs self; };
|
||||
in
|
||||
{
|
||||
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
||||
|
||||
Reference in New Issue
Block a user