aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/.profile
diff options
context:
space:
mode:
Diffstat (limited to 'files/.profile')
-rwxr-xr-xfiles/.profile8
1 files changed, 5 insertions, 3 deletions
diff --git a/files/.profile b/files/.profile
index 2fadec2..e705bc0 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
4nix_profile="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" 4nix_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
10LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive" 10LOCALE_ARCHIVE="$NIX_SYSTEM_PATH/lib/locale/locale-archive"
11export LOCALE_ARCHIVE 11export LOCALE_ARCHIVE
12
13PATH="$PATH:$NIX_SYSTEM_PATH/bin"