make sure experimental features are enabled on the shell

This commit is contained in:
Gabriel Fontes 2022-04-24 21:14:27 -03:00
parent 33523921cb
commit f5ec6f1b4d
No known key found for this signature in database
GPG key ID: 2E54EA7BFE630916

View file

@ -22,6 +22,12 @@
import nixpkgs { inherit system; } 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 { pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nix home-manager git ]; nativeBuildInputs = with pkgs; [ nix home-manager git ];
} }