1
0
Fork 0

Compare commits

..

No commits in common. "main" and "main" have entirely different histories.
main ... main

17 changed files with 9 additions and 150 deletions

View File

@ -1,47 +1,3 @@
QUBES_DIRS = qubes dom0 .PHONY: apply
ALL_DIRS = $(shell ls -d */ | sed 's#/##') apply:
GENERAL_DIRS = $(filter-out $(QUBES_DIRS), $(ALL_DIRS)) stow --target=$${HOME} */
.PHONY: all update-git-submodule apply-general apply-qubes install-apt-essentials clean
all: update-git-submodule apply-general apply-qubes
update-git-submodule:
@echo "Installing git submodules..."
git submodule update --init --recursive
apply-general:
@echo "Applying general configurations..."
stow --target=$(HOME) $(GENERAL_DIRS)
apply-qubes:
@echo "Applying Qubes configurations..."
sudo stow --target=/ qubes
install-apt-essentials:
sudo apt install \
tig \
htop \
tree \
ripgrep \
net-tools \
stow \
zsh \
rsync \
shellcheck \
pass \
make \
cmake \
ninja-build \
gettext \
curl \
build-essential \
jq \
wget \
-y
clean:
@echo "Removing stowed configurations..."
stow -D --target=$(HOME) $(GENERAL_DIRS)
stow -D --target=\ qubes

View File

@ -23,8 +23,8 @@
*color11: #657b83 *color11: #657b83
!! blue dark/light !! blue dark/light
*color4: #81a1c1 *color4: #268bd2
*color12: #5fafff *color12: #839496
!! magenta dark/light !! magenta dark/light
*color5: #d33682 *color5: #d33682

View File

@ -1,25 +0,0 @@
exec zsh
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc

View File

@ -1,7 +1,7 @@
[user] [user]
name = Anton Livaja email = lance@distrust.co
email = anton@livaja.me name = Lance R. Vick
signingKey = F4BF5C81EC78A5DD341C91EEDC4B7D1F52E0BA4D signingKey = E90A401336C8AAA9
[push] [push]
default = simple default = simple
[color] [color]

View File

@ -1,3 +1,2 @@
binds+=('/var/lib/docker') binds+=('/var/lib/docker')
binds+=('/var/lib/containerd') binds+=('/var/lib/containerd')
binds+=('/etc/systemd/user/qubes-ssh-socket.service')

View File

@ -1,5 +0,0 @@
{
"features": {
"containerd-snapshotter": true
}
}

View File

@ -1,5 +0,0 @@
{
"features": {
"containerd-snapshotter": true
}
}

View File

@ -1,10 +0,0 @@
[Unit]
Description=Run a SSH proxy socket to another QubesOS VM
[Service]
Environment=SSH_VAULT_VM=vault
ExecStart=%h/.local/bin/qubes-ssh-socket
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -1,10 +0,0 @@
# SPLIT SSH CONFIGURATION >>>
# replace "vault" with your AppVM name which stores the ssh private key(s)
SSH_VAULT_VM="vault"
if [ "$SSH_VAULT_VM" != "" ]; then
export SSH_SOCK="/home/user/.SSH_AGENT_$SSH_VAULT_VM"
rm -f "$SSH_SOCK"
sudo -u user /bin/sh -c "umask 177 && exec socat 'UNIX-LISTEN:$SSH_SOCK,fork' 'EXEC:qrexec-client-vm $SSH_VAULT_VM qubes.SshAgent'" &
fi
# <<< SPLIT SSH CONFIGURATION

View File

@ -1,10 +0,0 @@
[Unit]
Description=Run a SSH proxy socket to another QubesOS VM
[Service]
Environment=SSH_VAULT_VM=vault
ExecStart=%h/.local/bin/qubes-ssh-socket
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -5,7 +5,3 @@ run-shell "powerline-daemon -q"
source "/usr/share/powerline/bindings/tmux/powerline.conf" source "/usr/share/powerline/bindings/tmux/powerline.conf"
# vim: ft=tmux # vim: ft=tmux
# Fix coloring
set-option -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"

View File

@ -5,7 +5,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
export DEFAULT_USER="anton" export DEFAULT_USER="lrvick"
export DISABLE_AUTO_UPDATE="true" export DISABLE_AUTO_UPDATE="true"
export COMPLETION_WAITING_DOTS="true" export COMPLETION_WAITING_DOTS="true"
export HISTFILE=~/.zsh_history export HISTFILE=~/.zsh_history
@ -20,30 +20,3 @@ source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Aliases
alias gib='git branch'
alias gis='git status'
alias gfa='git fetch -a'
alias gpoh='git push origin HEAD'
# Bindkeys
bindkey '^R' history-incremental-search-backward # ctrl + shift + r -> Reverse search
bindkey '^A' beginning-of-line # ctrl + a -> Move to start of line
bindkey '^E' end-of-line # ctrl + e -> Move to end of line
bindkey '^[[1;5D' backward-word # ctrl + left arrow -> Move back one word
bindkey '^[[1;5C' forward-word # Ctrl + right arrow -> Move forward one word
# Color different file types
export LS_COLORS='di=94:ln=36:so=35:pi=33:ex=32:bd=46;34:cd=46;34'
alias ls='ls --color=auto'
export GPG_TTY=$(tty)
# SPLIT SSH CONFIGURATION >>>
SSH_VAULT_VM="vault"
if [ "$SSH_VAULT_VM" != "" ]; then
export SSH_AUTH_SOCK="/home/user/.SSH_AGENT_$SSH_VAULT_VM"
fi
# <<< SPLIT SSH CONFIGURATION