aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/.profile
diff options
context:
space:
mode:
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>2020-02-05 18:15:32 +0100
committerGitHub <noreply@github.com>2020-02-05 18:15:32 +0100
commit937d660cdc7b7b82cc6e75641ee6f21ff43e017a (patch)
treee3abd3690e3c71e164ef03bd7fe6619ef5d4b880 /files/.profile
parentc17ecb7e7616a5b01908cf6d3dde42f5bb090a67 (diff)
parent63ece951168caf2e68b403b76e628e6894d92d73 (diff)
downloaddocker-nix-937d660cdc7b7b82cc6e75641ee6f21ff43e017a.tar.gz
docker-nix-937d660cdc7b7b82cc6e75641ee6f21ff43e017a.tar.zst
docker-nix-937d660cdc7b7b82cc6e75641ee6f21ff43e017a.zip
Merge pull request #7 from paulrbr-fl/nix-store-as-a-volym2.3.1-channel-19.09-v2
volume: change base images to be able to mount /nix/store as volume
Diffstat (limited to 'files/.profile')
-rwxr-xr-xfiles/.profile14
1 files changed, 14 insertions, 0 deletions
diff --git a/files/.profile b/files/.profile
new file mode 100755
index 0000000..68b4473
--- /dev/null
+++ b/files/.profile
@@ -0,0 +1,14 @@
1#!/usr/bin/env bash
2
3# Copy initial saved nix context if the /nix is empty
4[ ! "$(ls -A /nix)" ] && cp -R ~/initial-nix/* /nix/
5
6# Source nix environment
7nix_profile="/home/nixuser/.nix-profile/etc/profile.d/nix.sh"
8# shellcheck source=/home/nixuser/.nix-profile/etc/profile.d/nix.sh
9[ -e "${nix_profile}" ] && . "${nix_profile}"
10
11# Propagate UTF8
12# https://github.com/NixOS/nix/issues/599#issuecomment-153885553
13LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive"
14export LOCALE_ARCHIVE