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

View file

@ -32,6 +32,8 @@
(builtins.readFile ./scripts/ssh-fix-permissions.sh))
(pkgs.writeShellScriptBin "yt-dlp-audio"
(builtins.readFile ./scripts/yt-dlp-audio.sh))
(pkgs.writeShellScriptBin "nix-shell-init"
(builtins.readFile ./scripts/nix-shell-init.sh))
(callPackage pkgs/docker-craft-cms-dev-env.nix { inherit lib; })
];
}

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