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; with pkgs;
let let
nixBin = writeShellScriptBin "nix" ''
myNix = writeShellScriptBin "nix" ''
exec ${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@" exec ${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
''; '';
in mkShell { in mkShell {
buildInputs = [ buildInputs = [
git git
myNix
]; ];
shellHook = '' shellHook = ''
export FLAKE="$(pwd)"
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
export DOTFILES="$(pwd)"
''; '';
} }
#+END_SRC #+END_SRC

6
shell.nix

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