Compare commits

...

3 Commits

Author SHA1 Message Date
c0d903524a found it like this
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-08 00:26:10 -07:00
be7c3a3963 remove some git pkgs 2020-05-26 00:36:12 -07:00
9acfb54dfb nix metapackage works 2020-05-26 00:35:49 -07:00
6 changed files with 27 additions and 38 deletions

View File

@ -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 && \

View File

@ -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

View File

@ -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

View File

@ -28,12 +28,13 @@ curl -L https://nixos.org/nix/install | sh
source /home/user/.nix-profile/etc/profile.d/nix.sh source /home/user/.nix-profile/etc/profile.d/nix.sh
# this should install all the packages from the config.nix: # this should install all the packages from the config.nix:
nix-env -i workEnv nix-env -i myPackages
# FIXME have this pull from synced dir instead # FIXME have this pull from synced dir instead
# 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

View File

@ -0,0 +1,3 @@
#!/bin/bash
exec /usr/sbin/sshd -D

View File

@ -1,50 +1,33 @@
{ pkgs }: {
let packageOverrides = pkgs: with pkgs; {
# Inherit utilities
inherit (pkgs) lib buildEnv;
homeDir = builtins.getEnv "HOME"; myPackages = pkgs.buildEnv {
name = "myPackages";
in { paths = [
allowUnfree = true; aspell
#jre = pkgs.oraclejre8; bc
#jdk = pkgs.oraclejdk8;
packageOverrides = pkgs: {
workEnv = lib.lowPrio (buildEnv {
name = "work-env";
ignoreCollisions = true;
paths = with pkgs; [
sneakDefaultPkgs
weechat
];
});
sneakDefaultPkgs = lib.lowPrio (buildEnv {
name = "sneakDefaultPkgs";
ignoreCollisions = true;
paths = with pkgs; [
clang clang
coreutils
ctags ctags
curl curl
gitAndTools.git-annex ffmpeg
gitAndTools.git-extras gdb
gitAndTools.git2cl git
gitAndTools.gitFull
gitAndTools.tig
gnupg gnupg
go go
jq
nix-prefetch-scripts nix-prefetch-scripts
nix-repl
openssh openssh
pwgen pwgen
qemu qemu
tmux tmux
tree tree
vim vim
weechat
wget wget
zsh
]; ];
}); };
}; };
} }