Browse Source

Update default shell

main
parent
commit
53b41ddf81
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 6
      README.org
  2. 6
      shell.nix

6
README.org

@ -184,17 +184,17 @@ Import this shell with ~nix-shell /etc/dotfiles/shell.nix~.
with pkgs;
let
nixBin = writeShellScriptBin "nix" ''
myNix = writeShellScriptBin "nix" ''
exec ${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
'';
in mkShell {
buildInputs = [
git
myNix
];
shellHook = ''
export FLAKE="$(pwd)"
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
export DOTFILES="$(pwd)"
'';
}
#+END_SRC

6
shell.nix

@ -4,16 +4,16 @@
with pkgs;
let
nixBin = writeShellScriptBin "nix" ''
myNix = writeShellScriptBin "nix" ''
exec ${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
'';
in mkShell {
buildInputs = [
git
myNix
];
shellHook = ''
export FLAKE="$(pwd)"
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
export DOTFILES="$(pwd)"
'';
}
Loading…
Cancel
Save