diff options
-rw-r--r-- | alpine/Dockerfile | 1 | ||||
-rw-r--r-- | debian/Dockerfile | 1 | ||||
-rwxr-xr-x | files/.profile | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 5399610..f6ea60c 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile | |||
@@ -19,6 +19,7 @@ USER nixuser | |||
19 | ENV USER=nixuser | 19 | ENV USER=nixuser |
20 | ENV HOME="/home/nixuser" | 20 | ENV HOME="/home/nixuser" |
21 | ENV NIX_SYSTEM_PATH="/nix/var/nix/profiles/system" | 21 | ENV NIX_SYSTEM_PATH="/nix/var/nix/profiles/system" |
22 | ENV NIX_PROFILE="$HOME/nix-envs" | ||
22 | 23 | ||
23 | RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.xz \ | 24 | RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.xz \ |
24 | && tar xJf nix-*-x86_64-linux.tar.xz \ | 25 | && tar xJf nix-*-x86_64-linux.tar.xz \ |
diff --git a/debian/Dockerfile b/debian/Dockerfile index 52eb820..edc605c 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile | |||
@@ -19,6 +19,7 @@ USER nixuser | |||
19 | ENV USER=nixuser | 19 | ENV USER=nixuser |
20 | ENV HOME="/home/nixuser" | 20 | ENV HOME="/home/nixuser" |
21 | ENV NIX_SYSTEM_PATH="/nix/var/nix/profiles/system" | 21 | ENV NIX_SYSTEM_PATH="/nix/var/nix/profiles/system" |
22 | ENV NIX_PROFILE="$HOME/nix-envs" | ||
22 | 23 | ||
23 | RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.xz \ | 24 | RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.xz \ |
24 | && tar xJf nix-*-x86_64-linux.tar.xz \ | 25 | && tar xJf nix-*-x86_64-linux.tar.xz \ |
diff --git a/files/.profile b/files/.profile index e705bc0..80d968e 100755 --- a/files/.profile +++ b/files/.profile | |||
@@ -10,4 +10,4 @@ nix_profile="$NIX_SYSTEM_PATH/etc/profile.d/nix.sh" | |||
10 | LOCALE_ARCHIVE="$NIX_SYSTEM_PATH/lib/locale/locale-archive" | 10 | LOCALE_ARCHIVE="$NIX_SYSTEM_PATH/lib/locale/locale-archive" |
11 | export LOCALE_ARCHIVE | 11 | export LOCALE_ARCHIVE |
12 | 12 | ||
13 | PATH="$PATH:$NIX_SYSTEM_PATH/bin" | 13 | PATH="$NIX_PROFILE/bin:$PATH:$NIX_SYSTEM_PATH/bin" |