]> Git — Sourcephile - sourcephile-nix.git/blob - Makefile
sanoid: syncoid: crate new datasets for more fine grained backups
[sourcephile-nix.git] / Makefile
1 all: init
2
3 include .lib/nixops/Makefile.make
4
5 .PHONY: base/unbound/named.root
6 base/unbound/named.root:
7 mkdir -p $(@D)
8 curl >$@ -L https://www.internic.net/domain/named.root
9
10 send-pass:
11 rsync -ai --delete ../sec/pass julm@sourcephile.fr:work/sourcephile/sec/
12 send-nixops:
13 rsync -ai --delete ../sec/nixops julm@sourcephile.fr:work/sourcephile/sec/
14 recv-pass:
15 rsync -ai --delete julm@sourcephile.fr:work/sourcephile/sec/pass ../sec/
16 recv-gnupg:
17 rsync -ai --delete julm@sourcephile.fr:work/sourcephile/sec/gnupg ../sec/
18 recv-ssh:
19 rsync -ai --delete julm@sourcephile.fr:work/sourcephile/sec/ssh ../sec/
20
21 tunnel-rspamd:
22 ssh -nNTL 11334:localhost:11334 root@sourcephile.fr
23
24 #
25 ## init
26 ###
27 .PHONY: build
28 build:
29 nix $(NIX_FLAGS) build -f build \
30 --out-link result \
31 --show-trace $(NIX_BUILD_FLAGS)
32 tree result/
33
34 init: build
35 result/bin/init