From c33369a9ffa6945cc1928986ae280563d2ec0d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 16 Dec 2020 16:53:14 +0100 Subject: Use dedicated system path for nix --- files/.profile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'files/.profile') diff --git a/files/.profile b/files/.profile index 2fadec2..e705bc0 100755 --- a/files/.profile +++ b/files/.profile @@ -1,11 +1,13 @@ #!/usr/bin/env bash # Source nix environment -nix_profile="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" -# shellcheck source=/home/nixuser/.nix-profile/etc/profile.d/nix.sh +nix_profile="$NIX_SYSTEM_PATH/etc/profile.d/nix.sh" +# shellcheck source=$NIX_SYSTEM_PATH/etc/profile.d/nix.sh [ -e "${nix_profile}" ] && . "${nix_profile}" # Propagate UTF8 # https://github.com/NixOS/nix/issues/599#issuecomment-153885553 -LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive" +LOCALE_ARCHIVE="$NIX_SYSTEM_PATH/lib/locale/locale-archive" export LOCALE_ARCHIVE + +PATH="$PATH:$NIX_SYSTEM_PATH/bin" -- cgit v1.2.3