-
Notifications
You must be signed in to change notification settings - Fork 50
/
.gitpod.Dockerfile
34 lines (29 loc) · 1.29 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# syntax=docker.io/docker/dockerfile:1.10.0
FROM yeongsheng/doughnut-gitpod:2024-10-31
# -----------------------------------------------------
# -------------------- USER gitpod --------------------
# -----------------------------------------------------
# Setup gitpod workspace user
CMD /bin/bash -l
USER gitpod
ENV USER gitpod
WORKDIR /home/gitpod
# activate nix
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
RUN export PATH="${PATH}:/nix/var/nix/profiles/default/bin"
RUN . /home/gitpod/.nix-profile/etc/profile.d/nix.sh \
# upgrade to lix
&& nix run \
--experimental-features "nix-command flakes" \
--extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \
'git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.91.1' -- \
upgrade-nix \
--extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \
# install direnv
&& nix-env -iA nixpkgs.direnv && nix-env -iA nixpkgs.nix-direnv
# fasd
RUN echo 'eval "$(fasd --init auto)"' >> ~/.bashrc
RUN echo 'eval "$(fasd --init auto)"' >> ~/.zshrc
# direnv
RUN echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
RUN echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc