diff options
author | ismaelbouyaf <ismael.bouya@fretlink.com> | 2020-12-17 15:07:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 15:07:41 +0100 |
commit | 51ca88242693d27bff139f25e363c0c629dd05b5 (patch) | |
tree | cad6863a86adc9dae33466b9d5046ced3773cb20 /files | |
parent | 425ab813a99a2aec3c4ce5cc432356451aa343c3 (diff) | |
parent | d7db3dbcf09fe8940319777df11c956bb78dddd7 (diff) | |
download | docker-nix-51ca88242693d27bff139f25e363c0c629dd05b5.tar.gz docker-nix-51ca88242693d27bff139f25e363c0c629dd05b5.tar.zst docker-nix-51ca88242693d27bff139f25e363c0c629dd05b5.zip |
Merge pull request #9 from ismaelbouyaf/use_dedicated_system
Use dedicated system path for nix
Diffstat (limited to 'files')
-rwxr-xr-x | files/.profile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/files/.profile b/files/.profile index 2fadec2..80d968e 100755 --- a/files/.profile +++ b/files/.profile | |||
@@ -1,11 +1,13 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # Source nix environment | 3 | # Source nix environment |
4 | nix_profile="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" | 4 | nix_profile="$NIX_SYSTEM_PATH/etc/profile.d/nix.sh" |
5 | # shellcheck source=/home/nixuser/.nix-profile/etc/profile.d/nix.sh | 5 | # shellcheck source=$NIX_SYSTEM_PATH/etc/profile.d/nix.sh |
6 | [ -e "${nix_profile}" ] && . "${nix_profile}" | 6 | [ -e "${nix_profile}" ] && . "${nix_profile}" |
7 | 7 | ||
8 | # Propagate UTF8 | 8 | # Propagate UTF8 |
9 | # https://github.com/NixOS/nix/issues/599#issuecomment-153885553 | 9 | # https://github.com/NixOS/nix/issues/599#issuecomment-153885553 |
10 | LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive" | 10 | LOCALE_ARCHIVE="$NIX_SYSTEM_PATH/lib/locale/locale-archive" |
11 | export LOCALE_ARCHIVE | 11 | export LOCALE_ARCHIVE |
12 | |||
13 | PATH="$NIX_PROFILE/bin:$PATH:$NIX_SYSTEM_PATH/bin" | ||