aboutsummaryrefslogblamecommitdiffhomepage
path: root/files/.profile
blob: 68b4473c98d213e674a443f9f397bdd293846749 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                            
#!/usr/bin/env bash

# Copy initial saved nix context if the /nix is empty
[ ! "$(ls -A /nix)" ] && cp -R ~/initial-nix/* /nix/

# 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
[ -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"
export LOCALE_ARCHIVE