v1
This commit is contained in:
parent
6609372021
commit
f0a0289060
5 changed files with 19 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/
|
|||
--no-confirm
|
||||
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
|
||||
RUN nix run nixpkgs#hello
|
||||
RUN systemctl enable nix-daemon.service
|
||||
CMD [ "/usr/lib/systemd/systemd" ]
|
||||
# SSH
|
||||
RUN apt update && apt install -y openssh-server
|
||||
|
|
@ -15,6 +16,9 @@ RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
|
|||
RUN echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config
|
||||
RUN systemctl enable ssh
|
||||
EXPOSE 22
|
||||
# set up the root-group to share files
|
||||
RUN sed -i "s/^UMASK//" /etc/login.defs
|
||||
RUN sed -i -e '$aUMASK 002' /etc/login.defs
|
||||
# Unminimize
|
||||
RUN apt install -y unminimize
|
||||
RUN yes | unminimize
|
||||
|
|
@ -30,3 +34,8 @@ RUN rm /tmp/apt.list
|
|||
COPY ./fret.list /tmp/apt.list
|
||||
RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ")
|
||||
RUN rm /tmp/apt.list
|
||||
# Nix
|
||||
RUN nix profile install nixpkgs\#chromium
|
||||
# Add user dev
|
||||
RUN useradd -d /root -g root dev
|
||||
RUN chmod g+w /root
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@ tmux
|
|||
direnv
|
||||
tcc
|
||||
ffmpeg
|
||||
build-essential
|
||||
man-db
|
||||
|
|
|
|||
2
decker.list
Normal file
2
decker.list
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
python3-pypdf
|
||||
poppler-utils
|
||||
8
prep.sh
8
prep.sh
|
|
@ -1,3 +1,5 @@
|
|||
podman build -t ubuntu-nix-basepod .
|
||||
podman create --name basepod -p 2222:22 -v /var/home/ab/code/envs/home:/root:z -v /var/home/ab/code:/root/code:z localhost/ubuntu-nix-basepod:latest
|
||||
|
||||
# podman build --network slirp4netns -t ubuntu-nix-basepod .
|
||||
podman create --name basepod --network slirp4netns -p 2222:22 -v /var/home/ab/code/envs/home:/root:z -v /var/home/ab/code:/root/code:z localhost/ubuntu-nix-basepod:latest
|
||||
#podman generate systemd basepod > ~/.config/systemd/user/basepod.service
|
||||
#systemctl --user daemon-reload
|
||||
#systemctl --user enable --now basepod
|
||||
|
|
|
|||
2
tex.list
2
tex.list
|
|
@ -3,3 +3,5 @@ texlive-lang-english
|
|||
texlive-lang-german
|
||||
texlive-latex-extra
|
||||
texlive-science
|
||||
latexmk
|
||||
texlive-xetex
|
||||
|
|
|
|||
Loading…
Reference in a new issue