From: Ismaƫl Bouya Date: Sun, 19 Apr 2020 23:58:14 +0000 (+0200) Subject: Remove useless scripts after migration to home-manager X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b1566203381206632b4f00b7120c4484089ca924;p=perso%2FImmae%2FConfig%2FNix%2FNUR.git Remove useless scripts after migration to home-manager --- diff --git a/Makefile b/Makefile index fafbe00f..d5b8e5a4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -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 @@ -7,28 +7,6 @@ ${subrecipes}: @$(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" @@ -36,4 +14,4 @@ nur: 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 diff --git a/scripts/make-env b/scripts/make-env deleted file mode 100755 index 25aa869a..00000000 --- a/scripts/make-env +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 "" "$@" -result=$? - -cat >> $(dirname $DIR)/versions_log <