some flake things among other stuff
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -19,6 +19,7 @@
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "flake-rustshell";
|
||||
buildInputs = with pkgs; [
|
||||
# Rust toolchain
|
||||
rustc
|
||||
@@ -34,13 +35,13 @@
|
||||
|
||||
# Environment variables
|
||||
shellHook = ''
|
||||
export RUST_BACKTRACE=1
|
||||
echo "🦀 Rust Dev Environment Loaded"
|
||||
export RUST_BACKTRACE=full
|
||||
export DEVSHELL_NAME=" flake/#89dceb|🦀 rustproject/red"
|
||||
|
||||
# Trigger zsh if not already in it
|
||||
if [[ -z "$ZSH_VERSION" ]]; then
|
||||
exec zsh
|
||||
fi
|
||||
# Trigger zsh if not already in it
|
||||
if [[ -z "$ZSH_VERSION" ]]; then
|
||||
exec zsh
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user