From f5ec6f1b4d7253fc27ac30d64c6edfb7a9aaaef8 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sun, 24 Apr 2022 21:14:27 -0300 Subject: [PATCH] make sure experimental features are enabled on the shell --- shell.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell.nix b/shell.nix index e6d0867..5736b9e 100644 --- a/shell.nix +++ b/shell.nix @@ -22,6 +22,12 @@ import nixpkgs { inherit system; } , ... }: +let + # Enable experimental features without having to specify the argument + nix = (pkgs.writeShellScriptBin) "nix" '' + exec ${pkgs.nixFlakes}/bin/nix --experimental-features "nix-command flakes" "$@" + ''; +in pkgs.mkShell { nativeBuildInputs = with pkgs; [ nix home-manager git ]; }