added nix shell init script

This commit is contained in:
Thilo Billerbeck 2023-05-16 23:36:14 +02:00
parent b642b3df49
commit 7840268f04
2 changed files with 23 additions and 0 deletions

21
scripts/nix-shell-init.sh Normal file
View file

@ -0,0 +1,21 @@
#/usr/bin/env bash
nixshell=$(cat << EOF
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ ];
shellHook = ''
'';
}
EOF
)
envrc=$(cat << EOF
use nix
EOF
)
echo $nixshell > shell.nix
echo $envrc > .envrc