next #1
|
@ -46,6 +46,8 @@ ARG SYSTEM_PACKAGES="\
|
||||||
tmux \
|
tmux \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
RUN /bin/bash -c "echo -e 'Y\n\n' | /usr/local/sbin/unminimize"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt update && \
|
apt update && \
|
||||||
apt -y upgrade && \
|
apt -y upgrade && \
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -10,4 +10,4 @@ build:
|
||||||
2>&1 | tee -a build.log
|
2>&1 | tee -a build.log
|
||||||
|
|
||||||
enter:
|
enter:
|
||||||
docker run -ti --rm=true -e HOME=/home/user -e USER=user --user=user -v /home/sneak:/home/user/.home sneak/work /home/user/.nix-profile/bin/zsh
|
docker run -ti --rm=true -e HOME=/home/user -e USER=user --user=user -v /home/sneak:/home/user/.home sneak/work /home/user/.nix-profile/bin/zsh -l
|
||||||
|
|
|
@ -44,7 +44,7 @@ ln -s /hostroot/root /root/.home
|
||||||
|
|
||||||
mkdir -p /home/user/.ssh
|
mkdir -p /home/user/.ssh
|
||||||
cp /root/.ssh/authorized_keys /home/user/.ssh/authorized_keys
|
cp /root/.ssh/authorized_keys /home/user/.ssh/authorized_keys
|
||||||
echo chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
|
chown -R $UID_TO_ADD:$GID_TO_ADD /home/user
|
||||||
chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
|
|
||||||
|
|
||||||
echo "$USERNAME_TO_ADD ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user
|
echo "$USERNAME_TO_ADD ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ nix-env -i myPackages
|
||||||
# oh-my-zsh
|
# oh-my-zsh
|
||||||
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh > /tmp/installomz.sh
|
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh > /tmp/installomz.sh
|
||||||
export ZSH="$HOME/.zsh"
|
export ZSH="$HOME/.zsh"
|
||||||
|
export KEEP_ZSHRC=yes
|
||||||
zsh /tmp/installomz.sh && rm /tmp/installomz.sh
|
zsh /tmp/installomz.sh && rm /tmp/installomz.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec /usr/sbin/sshd -D
|
|
@ -25,6 +25,7 @@
|
||||||
vim
|
vim
|
||||||
weechat
|
weechat
|
||||||
wget
|
wget
|
||||||
|
zsh
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue