/** * This is the entry-point for all nix execution in this project. */ { nixpkgsSrc ? ./nixpkgs.nix , system ? null , ... }: import (import ./nixpkgs.nix) ({ # Makes the config pure as well. See /top-level/impure.nix: config = { }; overlays = [ # all the packages are defined there: (import ./overlay.nix) ]; } // (if system == null then {} else { inherit system; }))