diff --git a/.config/bash/module/Nix.sh b/.config/bash/module/Nix.sh index 648a9b8..c9cd188 100644 --- a/.config/bash/module/Nix.sh +++ b/.config/bash/module/Nix.sh @@ -71,6 +71,7 @@ function nix_shell() { nix_shell="${name}" nix-shell ~/.config/linux/shell/"${name^}".nix } +alias shell="nix_shell" # Autocomplete with available hosts. function _comp_hosts() { @@ -90,4 +91,4 @@ function _comp_shells() { } complete -F _comp_hosts nix_update nix_upgrade -complete -F _comp_shells nix_shell +complete -F _comp_shells nix_shell shell diff --git a/.config/bash/module/Tmp.sh b/.config/bash/module/Tmp.sh index f48962b..c857dbd 100644 --- a/.config/bash/module/Tmp.sh +++ b/.config/bash/module/Tmp.sh @@ -5,7 +5,7 @@ function tmp() { case "${host}" in "desktop"|"home") - tmp_path="/var/mnt/storage/hot/tmp" + tmp_path="/storage/hot/tmp" ;; *) tmp_path="${HOME}/tmp" diff --git a/.config/linux/shell/Main.nix b/.config/linux/shell/Main.nix index e53ce51..2bb3cc0 100644 --- a/.config/linux/shell/Main.nix +++ b/.config/linux/shell/Main.nix @@ -1,4 +1,5 @@ with import {}; + mkShell { NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ alsa-lib diff --git a/.config/linux/shell/Rust.nix b/.config/linux/shell/Rust.nix new file mode 100644 index 0000000..97ab78b --- /dev/null +++ b/.config/linux/shell/Rust.nix @@ -0,0 +1,13 @@ +with import {}; + +mkShell { + NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ + stdenv.cc.cc + ]; + NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker"; + + buildInputs = [ + cargo + rustc + ]; +}