diff --git a/docs/nix.md b/docs/nix.md index 16059df..531525d 100644 --- a/docs/nix.md +++ b/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");