From f16d041e634ba3f89e65db8e7588999a09f25002 Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 28 Aug 2026 10:22:55 -0400 Subject: [PATCH] docs(nix): match flake import examples --- docs/nix.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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");