Commit c13067361a419f15f78cd39605356e1d02d717ee
cron.daily/nix
Claes Wallin (韋嘉誠) committed on 8/16/2016, 6:24:30 PMParent: 05d62e9439e2dd9f922bba9e102fc9429ea21e50
Files changed
cron.daily/nix | added |
cron.daily/nix | |||
---|---|---|---|
@@ -1,0 +1,33 @@ | |||
1 … | +#!/var/guix/profiles/execline/bin/execlineb | ||
2 … | + | ||
3 … | +export LANG C | ||
4 … | +export LC_ALL C | ||
5 … | +export LOCALE_ARCHIVE /nix/var/profiles/per-user/root/nix-profile/lib/locale/locale-archive | ||
6 … | + | ||
7 … | +define SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt | ||
8 … | +export SSL_CERT_FILE ${SSL_CERT_FILE} | ||
9 … | +export GIT_SSL_CAINFO ${SSL_CERT_FILE} | ||
10 … | +export CURL_CA_BUNDLE ${SSL_CERT_FILE} | ||
11 … | + | ||
12 … | +define NIX_PROFILE /nix/var/nix/profiles/per-user/root/nix-profile | ||
13 … | +define NIX_BIN ${NIX_PROFILE}/bin | ||
14 … | + | ||
15 … | +if { | ||
16 … | + pipeline -w { | ||
17 … | + grep -vE "downloading|unpacking" | ||
18 … | + } | ||
19 … | + fdmove -c 2 1 ${NIX_BIN}/nix-channel --update | ||
20 … | +} | ||
21 … | +if { | ||
22 … | + pipeline -w { | ||
23 … | + grep -vE "ok: run:" | ||
24 … | + } | ||
25 … | + /usr/bin/sv -v -w 60 restart /etc/sv/nix-daemon/ | ||
26 … | +} | ||
27 … | +if { | ||
28 … | + ${NIX_BIN}/nix-env -u | ||
29 … | +} | ||
30 … | +pipeline -w { | ||
31 … | + grep -vE "skipping suspicious writable file|freed by hard-linking" | ||
32 … | +} | ||
33 … | +fdmove -c 2 1 ${NIX_BIN}/nix-store --optimise |
Built with git-ssb-web