-subrecipes = setup
+subrecipes = setup nix-info
subrecipes += nixops ssh-eldiron ssh-backup-2 ssh-monitoring-1
subrecipes += info debug dry-run build upload deploy deploy-reboot reboot
subrecipes += list-generations delete-generations cleanup
@$(MAKE) --no-print-directory -C nixops/ $@
.PHONY: ${subrecipes}
-# This will automatically upgrade to latest version at each build
-nixpkgs ?= https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz
-NIX_PATH = nixpkgs=${nixpkgs}:nixpkgsNext=${nixpkgs}:nixpkgsPrevious=${nixpkgs}
-
-nix-path:
- @echo "export NIX_PATH=$(NIX_PATH)"
-
-env:
- ./scripts/make-env
-
-env-dry-run:
- ./scripts/make-env --dry-run
-
-nix-info:
- @version=$$(nix eval --option tarball-ttl 1 --raw nixpkgs.lib.version) && \
- mainversion=$$(echo $$version | cut -d"." -f -2) && \
- echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \
- nix-instantiate --find-file nixpkgs
-
-nix-info-nixops:
- @$(MAKE) --no-print-directory -C nixops/ nix-info
-
nur:
./scripts/make-nur
curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae"
shellcheck:
shellcheck scripts/* nixops/scripts/* modules/private/gitolite/gitolite_ldap_groups.sh modules/private/ssh/ldap_authorized_keys.sh modules/private/pub/restrict
-.PHONY: env env-dry-run nix-info nur shellcheck
+.PHONY: nur shellcheck
+++ /dev/null
-#!/bin/bash
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
-
-eval "$(make --no-print-directory -C $(dirname $DIR) nix-path)"
-nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@"
-result=$?
-
-cat >> $(dirname $DIR)/versions_log <<EOF
-Ran $(date) with args "$@" and returned "$result"
-$(make --no-print-directory -C $(dirname $DIR) nix-info | sed -e "s/^/ /")
-EOF
-#!/bin/bash
+#!/usr/bin/env bash
set -e
first_commit="5145061e9b679ea1e5d2709d22d0ee53467fed15"
git rebase --onto=$nur_root $first_commit master
+# The list below musn't get shrinked, it is used by filter-branch on
+# every commit
clean_folder='
rm -rf config lib/private modules/private pkgs/private nixops
for broken in pkgs/crypto/cardano/default.nix; do
+++ /dev/null
-#!/bin/bash
-
-# This will automatically upgrade to latest version at each build
-nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz"
-nixpkgsPrevious="$nixpkgs"
-nixpkgsNext="$nixpkgs"
-export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious"