summaryrefslogtreecommitdiff
path: root/scripts/nix_env
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix_env')
-rw-r--r--scripts/nix_env14
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/nix_env b/scripts/nix_env
index 7bc14dd3..7fb6646d 100644
--- a/scripts/nix_env
+++ b/scripts/nix_env
@@ -1,17 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2 2
3if [ -z "$NIXOPS_DEPLOYMENT" ]; then 3# This will automatically upgrade to latest version at each build
4 # This will automatically upgrade to latest version at each build 4nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz"
5 nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz"
6else
7 nixpkgs="https://releases.nixos.org/nixos/19.03/nixos-19.03.172731.3efdf45dbd1/nixexprs.tar.xz"
8fi
9nixpkgsPrevious="$nixpkgs" 5nixpkgsPrevious="$nixpkgs"
10nixpkgsNext="$nixpkgs" 6nixpkgsNext="$nixpkgs"
11export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" 7export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious"
12
13nixops_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 $(dirname $_DIR)/overlays); }; nixops")
16 ${d}/bin/nixops "$@"
17}