mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-12-26 21:30:51 +01:00
added nix shell init script
This commit is contained in:
parent
b642b3df49
commit
7840268f04
2 changed files with 23 additions and 0 deletions
|
@ -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
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…
Reference in a new issue