mirror of
https://github.com/Misterio77/nix-starter-configs.git
synced 2026-08-24 10:14:02 -05:00
make sure experimental features are enabled on the shell
This commit is contained in:
@@ -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 ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user