nix: Fix path on ubuntu with official installer

This commit is contained in:
Sridhar Ratnakumar 2025-09-10 20:47:06 -04:00
parent 4563417174
commit 79c2e500cd

View file

@ -6,9 +6,12 @@
home.file.".config/nix/nix.conf".text = "";
# Global session path for all shells
home.sessionPath = lib.mkIf pkgs.stdenv.isDarwin [
# Normally, we do this on macOS only. And it is not necessary on NixOS. Yet,
# non-NixOS Linux will need it (when using the official Nix installer).
home.sessionPath = [
"/etc/profiles/per-user/$USER/bin"
"/nix/var/nix/profiles/system/sw/bin"
"$HOME/.nix-profile/bin"
"/usr/local/bin"
];
}