This commit is contained in:
despiegk 2024-01-13 17:24:22 +03:00
parent a66406521b
commit 31bffebdbb
Signed by: despiegk
GPG Key ID: 99E4E1492F73BC18
3 changed files with 40 additions and 36 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ deluge_conf
bin/
code/
nuscripts
nuscripts/*

View File

@ -9,7 +9,6 @@ pkgs.mkShell {
nushell
mc
jq
# vscode-with-extensions
deluge
libtorrent-rasterbar
python311Packages.libtorrent-rasterbar
@ -22,11 +21,11 @@ pkgs.mkShell {
# dumptorrent
# udpt
# buildtorrent
];
# shellHook = ''
# echo "Nix shell environment is ready."
# hero_shell.sh
# '';
shellHook = ''
cd $BASE
git status
$BASE/hero_shell.sh
'';
}

View File

@ -1,9 +1,13 @@
#!/usr/bin/env bash
set -e
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$MYDIR"
export BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$BASE"
export NIXPKGS_ALLOW_UNFREE=1
mkdir -p $BASE/code
code $BASE/code
set -e
nix-shell