This commit is contained in:
2025-02-06 11:19:21 +01:00
parent c63a83d78a
commit 7c4cbc5a97
2 changed files with 8 additions and 2 deletions

View File

@@ -153,8 +153,6 @@
bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
denix = "sed -E 's@/nix/store/[^ /]+@@g'";
ns = "nix-shell -p";
};
home.enableNixpkgsReleaseCheck = true;

View File

@@ -0,0 +1,8 @@
function ns() {
args=()
for pkg in $@; do
args+=(nixpkgs#"$pkg")
done
>&2 echo + exec nix shell "${args[@]}"
export PATH=$(nix --extra-experimental-features "nix-command flakes" shell "${args[@]}" -c sh -c 'echo $PATH')
}