git ssb

0+

clacke / gists



Tree: c3f5635d0422027748290dbc3838b94ab69ad5a7

Files: c3f5635d0422027748290dbc3838b94ab69ad5a7 / cron.daily / nix

818 bytesRaw
1#!/var/guix/profiles/execline/bin/execlineb
2
3export LANG C
4export LC_ALL C
5export LOCALE_ARCHIVE /nix/var/profiles/per-user/root/nix-profile/lib/locale/locale-archive
6
7define SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt
8export SSL_CERT_FILE ${SSL_CERT_FILE}
9export GIT_SSL_CAINFO ${SSL_CERT_FILE}
10export CURL_CA_BUNDLE ${SSL_CERT_FILE}
11
12define NIX_PROFILE /nix/var/nix/profiles/per-user/root/nix-profile
13define NIX_BIN ${NIX_PROFILE}/bin
14
15if {
16 pipeline -w {
17 grep -vE "downloading|unpacking"
18 }
19 fdmove -c 2 1 ${NIX_BIN}/nix-channel --update
20}
21if {
22 pipeline -w {
23 grep -vE "ok: run:"
24 }
25 /usr/bin/sv -v -w 60 restart /etc/sv/nix-daemon/
26}
27if {
28 ${NIX_BIN}/nix-env -u
29}
30pipeline -w {
31 grep -vE "skipping suspicious writable file|freed by hard-linking"
32}
33fdmove -c 2 1 ${NIX_BIN}/nix-store --optimise

Built with git-ssb-web