From 859fef586a60d7695fb5b0e6ac20add024d00546 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 3 May 2021 01:48:22 -0400 Subject: [PATCH] add NS script (nix shell) --- modules/cli.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/cli.nix b/modules/cli.nix index 110dd6e..53dcf1d 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -42,6 +42,10 @@ in (writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/") + (writeShellScriptBin "ns" '' + exec nix shell "github:NixOS/nixpkgs/${config.system.nixos.revision}#$@" + '') + (writeShellScriptBin "pip_install" '' exec nix shell 'nixpkgs/nixos-unstable#python3.pkgs.pip' --command pip install --user -UI pip setuptools '')