Closed n8henrie closed 2 years ago
$ nix eval ~/.dotfiles?submodules=1#darwinConfigurations.NatePro.config.home-manager.users.n8henrie.home.profileDirectory
"/etc/profiles/per-user/n8henrie"
So profileDirectory
is being set correctly.
User error.
Part of my bashrc
explicitly sets my PATH
with a hack[^0]:
NIXPATH=$(
# shellcheck disable=SC2016
env -i HOME="${HOME}" sh -c '
for f in /etc/static/bashrc /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh; do
[ -f "${f}" ] && . "${f}"
done
echo "${PATH}"
'
)
PATH=${NIXPATH}:${PATH}
I needed to change it to env -i HOME="${HOME}" USER="${USER}"
so that $USER
would be available when setting up my environment.
[^0]: See also: https://github.com/NixOS/nix/issues/5950, https://github.com/NixOS/nix/issues/5298
Are you following the right branch?
Is there an existing issue for this?
Issue description
I have
home-manager.useUserPackages = true;
, and I haven't changed this.Inconsistently, I find that I'm missing packages that I have installed in my home-manager
programs
. Currently, I haveneovim
enabled and configured, butI can see that it's being installed:
When I investigate my
$PATH
, for some reason the/etc/profiles/per-user
is missing my username:Any ideas what's going on?
Using as a nix-darwin module, flakes. It seems like this problem has happened to me and spontaneously(?) resolved 3 or 4 times now, I can't figure out what's going on.
Maintainer CC
No response
System information