From e6261647cf6bc9981fcd8671dd83d2a1cee7a6e6 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Thu, 12 Oct 2023 00:46:13 +0100 Subject: [PATCH] flake.nix: add nix in devShell --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index e9f16e48..4be398c7 100644 --- a/flake.nix +++ b/flake.nix @@ -197,10 +197,12 @@ configuration = ./home-manager/minimal.nix; hostname = "devShell"; }).homeConfigurations.devShell; + inherit (homeManager) pkgs; inherit (homeManager.config.home) homeDirectory packages profileDirectory; in - homeManager.pkgs.mkShell { - inherit packages; + pkgs.mkShell { + # Ensure that nix/nix-build is in PATH + packages = [ pkgs.nix ] ++ packages; shellHook = '' export HOME=${homeDirectory} mkdir -p "$HOME"