Compare commits
3 Commits
22de9e5fac
...
c0d903524a
Author | SHA1 | Date | |
---|---|---|---|
c0d903524a | |||
be7c3a3963 | |||
9acfb54dfb |
@ -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 && \
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
3
root/etc/service/sshd/run
Normal file
3
root/etc/service/sshd/run
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec /usr/sbin/sshd -D
|
@ -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
|
||||
];
|
||||
});
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user