zsh: nixify: Use shell.nix instead of default.nix

This commit is contained in:
Simon Bruder 2020-08-19 23:09:31 +02:00
parent 3cde9104c8
commit 9be160d26c
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -61,7 +61,7 @@ nixify() {
direnv allow direnv allow
fi fi
if [[ ! -e shell.nix ]] && [[ ! -e default.nix ]]; then if [[ ! -e shell.nix ]] && [[ ! -e default.nix ]]; then
cat > default.nix << EOF cat > shell.nix << EOF
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell { pkgs.mkShell {
@ -69,7 +69,7 @@ pkgs.mkShell {
]; ];
} }
EOF EOF
${EDITOR:-vim} default.nix vim shell.nix
fi fi
} }