docs(nix): match flake import examples

This commit is contained in:
2026-08-28 10:22:55 -04:00
parent b61b8e3abf
commit f16d041e63

View File

@@ -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");