add NS script (nix shell)

This commit is contained in:
Sean Buckley 2021-05-03 01:48:22 -04:00
parent fe631ebd79
commit 859fef586a

View file

@ -42,6 +42,10 @@ in
(writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/") (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" '' (writeShellScriptBin "pip_install" ''
exec nix shell 'nixpkgs/nixos-unstable#python3.pkgs.pip' --command pip install --user -UI pip setuptools exec nix shell 'nixpkgs/nixos-unstable#python3.pkgs.pip' --command pip install --user -UI pip setuptools
'') '')