dotfiles/home-manager/scripts/nix-shell-init.sh

21 lines
253 B
Bash
Raw Permalink Normal View History

2023-05-16 23:36:14 +02:00
#/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