make sure experimental features are enabled on the shell
This commit is contained in:
parent
33523921cb
commit
f5ec6f1b4d
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue