diff options
-rw-r--r-- | nix_path_env | 9 | ||||
-rwxr-xr-x | nixops/scripts/nixops_wrap | 8 | ||||
-rwxr-xr-x | scripts/make-env | 9 |
3 files changed, 14 insertions, 12 deletions
diff --git a/nix_path_env b/nix_path_env new file mode 100644 index 0000000..7ded4ac --- /dev/null +++ b/nix_path_env | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # This will automatically upgrade to latest version at each build | ||
4 | # nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" | ||
5 | nixpkgs="https://releases.nixos.org/nixos/19.03/nixos-19.03beta171931.3a4ffdd38b5/nixexprs.tar.xz" | ||
6 | nixpkgsPrevious="$nixpkgs" | ||
7 | nixpkgsNext="$nixpkgs" | ||
8 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" | ||
9 | |||
diff --git a/nixops/scripts/nixops_wrap b/nixops/scripts/nixops_wrap index bf41e81..2094924 100755 --- a/nixops/scripts/nixops_wrap +++ b/nixops/scripts/nixops_wrap | |||
@@ -28,10 +28,6 @@ for file in $files; do | |||
28 | done | 28 | done |
29 | nixops set-args --argstr privateFiles "$TEMP" | 29 | nixops set-args --argstr privateFiles "$TEMP" |
30 | 30 | ||
31 | # This will automatically upgrade to latest version at each build | 31 | source $(dirname $(dirname $DIR))/nix_path_env |
32 | # nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" | 32 | export NIX_PATH="ssh-config-file=$(dirname $DIR)/ssh/config:$NIX_PATH" |
33 | nixpkgs="https://releases.nixos.org/nixos/19.03/nixos-19.03beta171840.23fd1394dc6/nixexprs.tar.xz" | ||
34 | nixpkgsPrevious="$nixpkgs" | ||
35 | nixpkgsNext="$nixpkgs" | ||
36 | export NIX_PATH="ssh-config-file=$(dirname $DIR)/ssh/config:nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" | ||
37 | nixops "$@" | 33 | nixops "$@" |
diff --git a/scripts/make-env b/scripts/make-env index 4dd89b7..415bd5b 100755 --- a/scripts/make-env +++ b/scripts/make-env | |||
@@ -1,9 +1,6 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | # This will automatically upgrade to latest version at each build | 3 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
4 | # nixpkgsNext="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" | 4 | |
5 | nixpkgsNext="https://releases.nixos.org/nixos/19.03/nixos-19.03beta171840.23fd1394dc6/nixexprs.tar.xz" | 5 | source $(dirname $DIR)/nix_path_env |
6 | nixpkgsPrevious="$nixpkgsNext" | ||
7 | nixpkgs="$nixpkgsNext" | ||
8 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" | ||
9 | nix-env -r -i -A immaePackages -f "<nixpkgs>" "$@" | 6 | nix-env -r -i -A immaePackages -f "<nixpkgs>" "$@" |