2 subrecipes += nixops ssh-eldiron ssh-backup-2 ssh-monitoring-1
3 subrecipes += info debug dry-run build upload deploy deploy-reboot reboot
4 subrecipes += list-generations delete-generations cleanup
5 subrecipes += pull pull_environment pull_deployment deployment_is_set push push_deployment push_environment
7 @$(MAKE) --no-print-directory -C nixops/ $@
10 # This will automatically upgrade to latest version at each build
11 nixpkgs ?= https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz
12 NIX_PATH = nixpkgs=${nixpkgs}:nixpkgsNext=${nixpkgs}:nixpkgsPrevious=${nixpkgs}
15 @echo "export NIX_PATH=$(NIX_PATH)"
21 ./scripts/make-env --dry-run
24 @version=$$(nix eval --option tarball-ttl 1 --raw nixpkgs.lib.version) && \
25 mainversion=$$(echo $$version | cut -d"." -f -2) && \
26 echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \
27 nix-instantiate --find-file nixpkgs
30 @$(MAKE) --no-print-directory -C nixops/ nix-info
34 curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae"
37 shellcheck scripts/* nixops/scripts/* modules/private/gitolite/gitolite_ldap_groups.sh modules/private/ssh/ldap_authorized_keys.sh modules/private/pub/restrict
39 .PHONY: env env-dry-run nix-info nur shellcheck