initial setup

This commit is contained in:
Alwin Berger 2025-05-19 12:44:23 +02:00
commit 6609372021
5 changed files with 61 additions and 0 deletions

32
Containerfile Normal file
View file

@ -0,0 +1,32 @@
FROM ubuntu:rolling
# Nix + systemd
RUN apt update -y
RUN apt install curl systemd -y
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \
--extra-conf "sandbox = false" \
--no-start-daemon \
--no-confirm
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
RUN nix run nixpkgs#hello
CMD [ "/usr/lib/systemd/systemd" ]
# SSH
RUN apt update && apt install -y openssh-server
RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
RUN echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config
RUN systemctl enable ssh
EXPOSE 22
# Unminimize
RUN apt install -y unminimize
RUN yes | unminimize
# basic packages
COPY ./basics.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
# Latex packages
COPY ./tex.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
# FRET packages
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

12
basics.list Normal file
View file

@ -0,0 +1,12 @@
# basics
zsh
fish
git
rsync
wget
vim
tmux
direnv
tcc
ffmpeg
man-db

9
fret.list Normal file
View file

@ -0,0 +1,9 @@
# FRET
#clang-19
#clang-tools-19
#clang-format-19
python3-jinja2
python3-matplotlib
python3-numpy
python3-reportbug
python3-scipy

3
prep.sh Normal file
View file

@ -0,0 +1,3 @@
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

5
tex.list Normal file
View file

@ -0,0 +1,5 @@
# latex
texlive-lang-english
texlive-lang-german
texlive-latex-extra
texlive-science