]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - Makefile
Fix bindir for dovecot sieve
[perso/Immae/Config/Nix.git] / Makefile
CommitLineData
4506dbe5
IB
1subrecipes = setup
2subrecipes += nixops ssh-eldiron info debug dry-run build upload deploy deploy-reboot reboot
3subrecipes += list-generations delete-generations cleanup
4subrecipes += 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
10nixpkgs ?= https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz
11NIX_PATH = nixpkgs=${nixpkgs}:nixpkgsNext=${nixpkgs}:nixpkgsPrevious=${nixpkgs}
12
13nix-path:
14 @echo "export NIX_PATH=$(NIX_PATH)"
dbcba2ea
IB
15
16env:
17 ./scripts/make-env
18
19env-dry-run:
20 ./scripts/make-env --dry-run
21
22nix-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
28nix-info-nixops:
4506dbe5 29 @$(MAKE) --no-print-directory -C nixops/ nix-info
dbcba2ea
IB
30
31nur:
32 ./scripts/make-nur
845e5a98 33 curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae"
dbcba2ea 34
e96787f1
IB
35shellcheck:
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