From 64e6052f5f24213141faba155b896c6beaef26f4 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 25 Aug 2022 15:21:33 -0600 Subject: home: switch old-style shenvs to hm-isolation --- home/zshrc.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'home/zshrc.nix') diff --git a/home/zshrc.nix b/home/zshrc.nix index 704ef0e..ec231f5 100644 --- a/home/zshrc.nix +++ b/home/zshrc.nix @@ -21,10 +21,6 @@ source ${local.git-aliases} } - function shenv() { - NIXPKGS_ALLOW_UNFREE=1 nix shell --impure 'system#shenvs.'"$1" - } - function xseli() { T=$(mktemp) $EDITOR -n $T @@ -44,8 +40,6 @@ INSTALLABLES=() while read -d: PATH_ITEM; do if [[ "$PATH_ITEM" =~ "^(/nix/store/[a-z0-9]+-([a-zA-Z][a-zA-Z0-9_]*(-[a-zA-Z][a-zA-Z0-9_]*)*)(-[^/]+)?)/" ]]; then - ENTER="''${match[1]}/lib/shenv/enter" - [[ "''${match[2]}" =~ '^shenv-' && -r "$ENTER" ]] && . "$ENTER" INSTALLABLES+=("''${match[2]}") fi done <<<"$PATH" @@ -54,7 +48,7 @@ _GRML_NIX_SHELL="{''${INSTALLABLES[@]}} " fi - unset INSTALLABLES ENTER PATH_ITEM + unset INSTALLABLES PATH_ITEM function grml_nix_shell() { REPLY="$_GRML_NIX_SHELL" -- cgit v1.2.3