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 \
"
RUN /bin/bash -c "echo -e 'Y\n\n' | /usr/local/sbin/unminimize"
RUN \
apt update && \
apt -y upgrade && \

View File

@ -10,4 +10,4 @@ build:
2>&1 | tee -a build.log
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
cp /root/.ssh/authorized_keys /home/user/.ssh/authorized_keys
echo chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
chown -R $UID_TO_ADD:$GID_TO_ADD /home/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
# 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
# oh-my-zsh
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh > /tmp/installomz.sh
export ZSH="$HOME/.zsh"
export KEEP_ZSHRC=yes
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
# Inherit utilities
inherit (pkgs) lib buildEnv;
{
packageOverrides = pkgs: with pkgs; {
homeDir = builtins.getEnv "HOME";
in {
allowUnfree = true;
#jre = pkgs.oraclejre8;
#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; [
myPackages = pkgs.buildEnv {
name = "myPackages";
paths = [
aspell
bc
clang
coreutils
ctags
curl
gitAndTools.git-annex
gitAndTools.git-extras
gitAndTools.git2cl
gitAndTools.gitFull
gitAndTools.tig
ffmpeg
gdb
git
gnupg
go
jq
nix-prefetch-scripts
nix-repl
openssh
pwgen
qemu
tmux
tree
vim
weechat
wget
zsh
];
});
};
};
}