Files: 75cae756370f47f90e6bbe2933fc3874808d076c / cron.daily / nix
818 bytesRaw
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