]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blame - Makefile
Upgrade phpLDAPAdmin to a fork
[perso/Immae/Config/Nix/NUR.git] / Makefile
CommitLineData
a8e4bf75 1subrecipes = setup
7e50b865
IB
2subrecipes += nixops ssh-eldiron ssh-backup-2 ssh-monitoring-1
3subrecipes += info debug dry-run build upload deploy deploy-reboot reboot
a8e4bf75
IB
4subrecipes += list-generations delete-generations cleanup
5subrecipes += pull pull_environment pull_deployment deployment_is_set push push_deployment push_environment
13248445
IB
6${subrecipes}:
7 @$(MAKE) --no-print-directory -C nixops/ $@
a8e4bf75
IB
8.PHONY: ${subrecipes}
9
10# This will automatically upgrade to latest version at each build
11nixpkgs ?= https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz
12NIX_PATH = nixpkgs=${nixpkgs}:nixpkgsNext=${nixpkgs}:nixpkgsPrevious=${nixpkgs}
13
14nix-path:
15 @echo "export NIX_PATH=$(NIX_PATH)"
13248445
IB
16
17env:
18 ./scripts/make-env
19
20env-dry-run:
21 ./scripts/make-env --dry-run
22
23nix-info:
69646d6f 24 @version=$$(nix eval --option tarball-ttl 1 --raw nixpkgs.lib.version) && \
a8e4bf75
IB
25 mainversion=$$(echo $$version | cut -d"." -f -2) && \
26 echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \
2e5c081c 27 nix-instantiate --find-file nixpkgs
13248445
IB
28
29nix-info-nixops:
a8e4bf75 30 @$(MAKE) --no-print-directory -C nixops/ nix-info
13248445
IB
31
32nur:
33 ./scripts/make-nur
6afdbd8c 34 curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae"
13248445 35
1449c51f
IB
36shellcheck:
37 shellcheck scripts/* nixops/scripts/* modules/private/gitolite/gitolite_ldap_groups.sh modules/private/ssh/ldap_authorized_keys.sh modules/private/pub/restrict
38
a8e4bf75 39.PHONY: env env-dry-run nix-info nur shellcheck