include local sources in pinned nix path
1 file changed, 3 insertions(+), 16 deletions(-)
changed files
M shell.nix → shell.nix
@@ -1,19 +1,7 @@ let - sources = import ./npins; - - nixpkgs = sources.nixpkgs; - pkgs = import nixpkgs { }; - inherit (pkgs) lib; - # lib = import ./lib { inherit pkgs; }; - inherit (import ./lib { inherit pkgs; }) mkNixPath fromSources; + inherit (import ./sources.nix) nixPath sources; - nixPath = builtins.concatStringsSep ":" (mkNixPath - ({ - personal = ./packages; - nixpkgs-overlays = ./overlays; - private = ./private; - } // (fromSources sources)) - ); + pkgs = import sources.nixpkgs { }; in pkgs.mkShell {@@ -27,7 +15,6 @@ (import sources.home-manager { inherit pkgs; }).home-manager ]; shellHook = '' - export NIX_PATH="${nixPath}"; + export NIX_PATH="${builtins.concatStringsSep ":"nixPath}"; ''; - }