diff --git a/packages.nix b/packages.nix index 2f5bdab..4d8e35b 100644 --- a/packages.nix +++ b/packages.nix @@ -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; }) ]; } diff --git a/scripts/nix-shell-init.sh b/scripts/nix-shell-init.sh new file mode 100644 index 0000000..8851fa6 --- /dev/null +++ b/scripts/nix-shell-init.sh @@ -0,0 +1,21 @@ +#/usr/bin/env bash + +nixshell=$(cat << EOF +{ pkgs ? import {} }: + +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ ]; + shellHook = '' + + ''; +} +EOF +) + +envrc=$(cat << EOF +use nix +EOF +) + +echo $nixshell > shell.nix +echo $envrc > .envrc \ No newline at end of file