Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-#7/change-to-nixos #9

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 30 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
FROM thinca/vim:latest-full-alpine
FROM nixos/nix
ENV TERM=xterm-256color
COPY . /root
RUN apk add curl
RUN apk add git
RUN apk add build-base
RUN apk add cmake
RUN apk add fzf
RUN apk add python3-dev
RUN apk add linux-headers
RUN apk add py3-pip
RUN nix-channel --add https://nixos.org/channels/nixos-22.05
RUN nix-channel --update
RUN nix-env -i oh-my-zsh
RUN nix-env -i git
RUN nix-env -i fzf
#RUN nix-env -iA nixos.linuxHeaders
RUN nix-env -i vim
#RUN nix-env -i vimPlugins.vim-plug
#RUN nix-env -i vimPlugins.vim-fugitive
#RUN nix-env -i vimPlugins.tabular
#RUN nix-env -i vimPlugins.vim-markdown
#RUN nix-env -i vimPlugins.vim-monokai-pro
#RUN nix-env -i vimPlugins.ale
RUN nix-env -i pylint
RUN nix-env -i pipenv
RUN nix-env -i curl

#RUN nix-env -i python310Packages.bandit
#RUN nix-env -i python310Packages.flake8
#RUN nix-env -i vimPlugins.vim-airline
#RUN nix-env -i vimPlugins.vim-airline-themes
#RUN nix-env -i vimPlugins.vim-slime
#RUN nix-env -i vimPlugins.vim-maktaba
#RUN nix-env -i vimPlugins.vim-codefmt
#RUN nix-env -i vimPlugins.fzf-vim
#RUN nix-env -i vimPlugins.vim-gitgutter
#RUN nix-env -i vimPlugins.rainbow
#RUN nix-env -i vimPlugins.vim-surround
RUN curl -fLo ~/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#RUN vim +PlugInstall +qa
RUN vim +"source ./snapshot.vim" +qa
RUN python3 /root/.vim/plugged/YouCompleteMe/install.py
ENTRYPOINT ["vim"]
ENTRYPOINT ["zsh"]