-
-
Save lanzafame/4f201100527be427009f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if test -n $HOME | |
set -l NIX_LINK $HOME/.nix-profile | |
if test ! -L $NIX_LINK | |
echo "creating $NIX_LINK" >&2 | |
set -l _NIX_DEF_LINK /nix/var/nix/profiles/default | |
/nix/store/cdybb3hbbxf6k84c165075y7vkv24vm2-coreutils-8.23/bin/ln -s $_NIX_DEF_LINK $NIX_LINK | |
end | |
set -x PATH $NIX_LINK/bin $NIX_LINK/sbin $PATH | |
set -x MANPATH $NIX_LINK/share/man $MANPATH | |
if test ! -e $HOME/.nix-channels | |
echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels | |
end | |
set -x NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs | |
if test -e /etc/ssl/certs/ca-certificates.crt | |
set -x SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt | |
else if test -e /etc/ssl/certs/ca-bundle.crt | |
set -x SSL_CERT_FILE /etc/ssl/certs/ca-bundle.crt | |
else if test -e /etc/pki/tls/certs/ca-bundle.crt | |
set -x SSL_CERT_FILE /etc/pki/tls/certs/ca-bundle.crt | |
else if test -e $NIX_LINK/etc/ssl/certs/ca-bundle.crt | |
set -x SSL_CERT_FILE $NIX_LINK/etc/ssl/certs/ca-bundle.crt | |
else if test -e $NIX_LINK/etc/ca-bundle.crt | |
set -x SSL_CERT_FILE $NIX_LINK/etc/ca-bundle.crt | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment