]>
Commit | Line | Data |
---|---|---|
4506dbe5 IB |
1 | subrecipes = setup |
2 | subrecipes += nixops ssh-eldiron info debug dry-run build upload deploy deploy-reboot reboot | |
3 | subrecipes += list-generations delete-generations cleanup | |
4 | subrecipes += pull pull_environment pull_deployment deployment_is_set push push_deployment push_environment | |
dbcba2ea IB |
5 | ${subrecipes}: |
6 | @$(MAKE) --no-print-directory -C nixops/ $@ | |
4506dbe5 IB |
7 | .PHONY: ${subrecipes} |
8 | ||
9 | # This will automatically upgrade to latest version at each build | |
10 | nixpkgs ?= https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz | |
11 | NIX_PATH = nixpkgs=${nixpkgs}:nixpkgsNext=${nixpkgs}:nixpkgsPrevious=${nixpkgs} | |
12 | ||
13 | nix-path: | |
14 | @echo "export NIX_PATH=$(NIX_PATH)" | |
dbcba2ea IB |
15 | |
16 | env: | |
17 | ./scripts/make-env | |
18 | ||
19 | env-dry-run: | |
20 | ./scripts/make-env --dry-run | |
21 | ||
22 | nix-info: | |
55747815 | 23 | @version=$$(nix eval --option tarball-ttl 1 --raw nixpkgs.lib.version) && \ |
4506dbe5 IB |
24 | mainversion=$$(echo $$version | cut -d"." -f -2) && \ |
25 | echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \ | |
af3aeef2 | 26 | nix-instantiate --find-file nixpkgs |
dbcba2ea IB |
27 | |
28 | nix-info-nixops: | |
4506dbe5 | 29 | @$(MAKE) --no-print-directory -C nixops/ nix-info |
dbcba2ea IB |
30 | |
31 | nur: | |
32 | ./scripts/make-nur | |
845e5a98 | 33 | curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae" |
dbcba2ea | 34 | |
e96787f1 IB |
35 | shellcheck: |
36 | shellcheck scripts/* nixops/scripts/* modules/private/gitolite/gitolite_ldap_groups.sh modules/private/ssh/ldap_authorized_keys.sh modules/private/pub/restrict | |
37 | ||
4506dbe5 | 38 | .PHONY: env env-dry-run nix-info nur shellcheck |