mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
nix: Fix path on ubuntu with official installer
This commit is contained in:
parent
4563417174
commit
79c2e500cd
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue