From 6931b1213019e9aab5e8e0bd5cd5c6b25fbc5b6a Mon Sep 17 00:00:00 2001 From: reo101 Date: Tue, 7 Feb 2023 04:02:09 +0200 Subject: [PATCH] fix(shell.nix): add `default` --- shell.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/shell.nix b/shell.nix index 9525915..105a492 100644 --- a/shell.nix +++ b/shell.nix @@ -1,10 +1,17 @@ -# Shell for bootstrapping flake-enabled nix and home-manager -# You can enter it through 'nix develop' or (legacy) 'nix-shell' - -{ pkgs ? (import ./nixpkgs.nix) { } }: { +# Shell for bootstrapping flake-enabled nix and other tooling +{ pkgs ? + # If pkgs is not defined, instanciate nixpkgs from locked commit + (import ./nixpkgs.nix) { } +, ... +}: { default = pkgs.mkShell { - # Enable experimental features without having to specify the argument - NIX_CONFIG = "experimental-features = nix-command flakes"; - nativeBuildInputs = with pkgs; [ nix home-manager git ]; + NIX_CONFIG = '' + extra-experimental-features = nix-command flakes repl-flake + ''; + nativeBuildInputs = with pkgs; [ + nix + home-manager + git + ]; }; }