diff options
-rw-r--r-- | nix_path_env | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nix_path_env b/nix_path_env index 901cd693..19f7ccaf 100644 --- a/nix_path_env +++ b/nix_path_env | |||
@@ -9,3 +9,9 @@ fi | |||
9 | nixpkgsPrevious="$nixpkgs" | 9 | nixpkgsPrevious="$nixpkgs" |
10 | nixpkgsNext="$nixpkgs" | 10 | nixpkgsNext="$nixpkgs" |
11 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" | 11 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" |
12 | |||
13 | nixops_custom () { | ||
14 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
15 | d=$(nix-build --no-out-link -E "with import <nixpkgs> { overlays = builtins.attrValues (import $DIR/overlays); }; nixops") | ||
16 | ${d}/bin/nixops "$@" | ||
17 | } | ||