!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1209 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org201 Servers

Load older messages


SenderMessageTime
3 Jul 2021
@siraben:matrix.orgsiraben huh how did you get ~/.nix-profile to appear first 07:27:01
@treed:cybre.spacetreedJust what I pasted above. 07:27:32
@treed:cybre.spacetreedIt ends up in .zshrc07:27:36
@treed:cybre.spacetreedIt is almost the last thing in .zshrc07:29:54
@treed:cybre.spacetreedThe only thing after it is the direnv hook07:29:59
@siraben:matrix.orgsiraben treed: did you adjust anything in /etc/? 07:31:43
@treed:cybre.spacetreedI don't think so?07:31:49
@siraben:matrix.orgsiraben
In reply to @siraben:matrix.org
treed: my path now looks like /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/siraben/.nix-profile/bin:/nix/var/nix/profiles/default/bin
re-logged, still same path
07:32:15
@treed:cybre.spacetreedWeird07:32:22
@siraben:matrix.orgsiraben
typeset -U path cdpath fpath manpath

for profile in ${(z)NIX_PROFILES}; do
  fpath+=($profile/share/zsh/site-functions $profile/share/zsh/$ZSH_VERSION/functions $profile/share/zsh/vendor-completions)
done

HELPDIR="/nix/store/zvg2cmpc06hsrr6cx53c53waq1z7kfxq-zsh-5.8/share/zsh/$ZSH_VERSION/help"




# Oh-My-Zsh/Prezto calls compinit during initialization,
# calling it twice causes slight start up slowdown
# as all $fpath entries will be traversed again.


# Environment variables
. "/Users/siraben/.nix-profile/etc/profile.d/hm-session-vars.sh"


# oh-my-zsh extra settings for plugins

# oh-my-zsh configuration generated by NixOS
plugins=(git autojump)

ZSH_THEME="robbyrussell"
source $ZSH/oh-my-zsh.sh

# History options should be set in .zshrc and after oh-my-zsh sourcing.
# See https://github.com/nix-community/home-manager/issues/177.
HISTSIZE="100000"
SAVEHIST="100000"

HISTFILE="$HOME/.zsh_history"
mkdir -p "$(dirname "$HISTFILE")"

setopt HIST_FCNTL_LOCK
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
unsetopt HIST_EXPIRE_DUPS_FIRST
setopt SHARE_HISTORY
unsetopt EXTENDED_HISTORY


eval "$(/nix/store/1f4hrxvl66ylnlgrq8px8lfjx8iizik1-direnv-2.28.0/bin/direnv hook zsh)"


# For multi-user installation
export NIX_PATH=$NIX_PATH:$HOME/.nix-defexpr/channels
source $HOME/.nix/remote-build-env


# source /nix/store/m6f285lbh6g0kzfmi0zrx6j6mcs79b9q-nix-index-0.1.2/etc/profile.d/command-not-found.sh
# This should be in envExtra, but Mac sets PATH from zprofile, which comes after zshenv
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi

07:33:11
@siraben:matrix.orgsirabenrelevant parts of ~/.zshrc07:33:20
@treed:cybre.spacetreedLooks like my /etc files aren't modified as far as I can tell07:33:22
@treed:cybre.spacetreedno nix-darwin on this machine either07:33:26
@siraben:matrix.orgsirabenwhat's the order of config files that are loaded on macos?07:33:44
@siraben:matrix.orgsirabenI wonder if oh-my-zsh has anything to do with this07:34:02
@treed:cybre.spacetreedzshenv, zprofile, zshrc zlogin07:34:26
@treed:cybre.spacetreedglobal first then user07:34:28
@treed:cybre.spacetreedthat is, global zsh env then user zshenv, then global zprofile, etc07:34:40
@treed:cybre.spacetreedI forget when it will do profile07:35:14
@treed:cybre.spacetreedI think only if zprofile doesn't exist or something?07:35:20
@siraben:matrix.orgsiraben hm, this line in nix-daemon.sh export PATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH" 07:35:53
@treed:cybre.spacetreedhttps://zsh.sourceforge.io/Doc/Release/Files.html#Files07:36:24
@treed:cybre.spacetreedI don't see any mention of .profile there at all so maybe it just doesn't07:36:35
@siraben:matrix.orgsiraben lol my /etc/zprofile 07:37:14
@siraben:matrix.orgsiraben
# System-wide profile for interactive zsh(1) login shells.

# Setup user specific overrides for this in ~/.zprofile. See zshbuiltins(1)
# and zshoptions(1) for more details.

if [ -x /usr/libexec/path_helper ]; then
	eval `/usr/libexec/path_helper -s`
fi

07:37:16
@siraben:matrix.orgsirabenthat command evals07:37:32
@siraben:matrix.orgsiraben
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/siraben/.nix-profile/bin:/nix/var/nix/profiles/default/bin"; export PATH;
07:37:33
@siraben:matrix.orgsirabenSo I found the culprit07:37:34
@siraben:matrix.orgsirabenthough I'm not sure if I'm supposed to remove this07:37:36
@treed:cybre.spacetreedYeah, that's what my thing was for07:38:04

There are no newer messages yet.


Back to Room ListRoom Version: 6