mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-06-14 08:24:36 +02:00
added nix shell init script
This commit is contained in:
parent
b642b3df49
commit
7840268f04
2 changed files with 23 additions and 0 deletions
scripts
21
scripts/nix-shell-init.sh
Normal file
21
scripts/nix-shell-init.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue