#!/var/guix/profiles/execline/bin/execlineb export LANG C export LC_ALL C export LOCALE_ARCHIVE /nix/var/profiles/per-user/root/nix-profile/lib/locale/locale-archive define SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt export SSL_CERT_FILE ${SSL_CERT_FILE} export GIT_SSL_CAINFO ${SSL_CERT_FILE} export CURL_CA_BUNDLE ${SSL_CERT_FILE} define NIX_PROFILE /nix/var/nix/profiles/per-user/root/nix-profile define NIX_BIN ${NIX_PROFILE}/bin if { pipeline -w { grep -vE "downloading|unpacking" } fdmove -c 2 1 ${NIX_BIN}/nix-channel --update } if { pipeline -w { grep -vE "ok: run:" } /usr/bin/sv -v -w 60 restart /etc/sv/nix-daemon/ } if { ${NIX_BIN}/nix-env -u } pipeline -w { grep -vE "skipping suspicious writable file|freed by hard-linking" } fdmove -c 2 1 ${NIX_BIN}/nix-store --optimise