This commit is contained in:
despiegk 2024-01-13 16:41:26 +03:00
parent a01e9c9c19
commit d0144b72db
Signed by: despiegk
GPG Key ID: 99E4E1492F73BC18
4 changed files with 45 additions and 36 deletions

3
cleanup.sh Normal file
View File

@ -0,0 +1,3 @@
nix-env --delete-generations old
nix-store --gc
# nix-collect-garbage -d

View File

@ -102,4 +102,5 @@ cd ${BASE}
nuscript_get nuscript_get
nu --config nuscripts/config/config.nu --env-config nuscripts/config/env.nu -e 'source nuscripts/load.nu; $env.PATH = (paths_nix)' nu --config nuscripts/config/config.nu --env-config nuscripts/config/env.nu \
-e 'source nuscripts/load.nu; $env.PATH = (paths_nix); herotools install_crystal; herotools install_hero'

View File

@ -1,32 +1,35 @@
let let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11"; nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
pkgs = import nixpkgs { config = {}; overlays = []; }; pkgs = import nixpkgs { config = {}; overlays = []; };
in in
pkgs.mkShell { pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
git git
nushellFull nushellFull
mc mc
jq jq
# libtorrent-rasterbar # libtorrent-rasterbar
# python311Packages.libtorrent-rasterbar # python311Packages.libtorrent-rasterbar
python311Full python311Full
python311Packages.ipython python311Packages.ipython
python311Packages.ipdb python311Packages.ipdb
python311Packages.rq python311Packages.rq
rsync rsync
rustc rustc
go go
duf duf
gdu gdu
vscode-with-extensions
vscode-extensions.thenuprojectcontributors.vscode-nushell-lang ];
]; # BIN_MC = "${pkgs.mc}/bin";
# shellHook = ''
# echo "Nix shell environment is ready." shellHook = ''
# hero_shell.sh cd $BASE
# ''; git status
} echo $BASE
$BASE/hero_shell.sh
'';
}

View File

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