mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-27 01:58:49 +01:00
21 lines
253 B
Bash
21 lines
253 B
Bash
|
#/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
|