aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/desktop/boot/loader.conf21
-rw-r--r--configs/desktop/etc/rc.conf27
-rw-r--r--configs/desktop/home/.xinitrc2
-rw-r--r--configs/shared/.gdbinit1
-rw-r--r--configs/shared/.gitconfig20
-rw-r--r--configs/shared/.tmux.conf1
-rw-r--r--configs/shared/.vimrc52
-rw-r--r--configs/shared/.zshrc73
-rw-r--r--configs/shared/alacritty.yml11
9 files changed, 208 insertions, 0 deletions
diff --git a/configs/desktop/boot/loader.conf b/configs/desktop/boot/loader.conf
new file mode 100644
index 0000000..0305c24
--- /dev/null
+++ b/configs/desktop/boot/loader.conf
@@ -0,0 +1,21 @@
+aesni_load="YES"
+cryptodev_load="YES"
+geom_eli_load="YES"
+kern.geom.label.disk_ident.enable="0"
+kern.geom.label.gptid.enable="0"
+security.bsd.allow_destructive_dtrace=0
+zfs_load="YES"
+ng_ubt_load="YES"
+cuse_load="YES"
+
+# Intel Microcore
+cpu_microcode_load="YES"
+cpu_microcode_name="/boot/firmware/intel-ucode.bin"
+
+# Wireless
+if_iwm_load="YES"
+iwm9260fw_load="YES"
+
+# Boot
+autoboot_delay="5"
+
diff --git a/configs/desktop/etc/rc.conf b/configs/desktop/etc/rc.conf
new file mode 100644
index 0000000..fd5d121
--- /dev/null
+++ b/configs/desktop/etc/rc.conf
@@ -0,0 +1,27 @@
+clear_tmp_enable="YES"
+syslogd_flags="-ss"
+sendmail_enable="NONE"
+hostname="desktop"
+ifconfig_em0="DHCP"
+ifconfig_em0_ipv6="inet6 accept_rtadv"
+local_unbound_enable="YES"
+sshd_enable="YES"
+ntpd_enable="YES"
+powerd_enable="YES"
+dumpdev="AUTO"
+zfs_enable="YES"
+keymap="us.kbd"
+jail_enable="YES"
+
+dbus_enable="YES"
+hald_enable="YES"
+
+kld_list="/boot/modules/i915kms.ko"
+
+# Bluetooth
+hcsecd_enable="YES"
+sdpd_enable="YES"
+bthidd_enable="YES"
+
+spotifyd_enable="YES"
+
diff --git a/configs/desktop/home/.xinitrc b/configs/desktop/home/.xinitrc
new file mode 100644
index 0000000..0da3109
--- /dev/null
+++ b/configs/desktop/home/.xinitrc
@@ -0,0 +1,2 @@
+exec /usr/local/bin/i3
+
diff --git a/configs/shared/.gdbinit b/configs/shared/.gdbinit
new file mode 100644
index 0000000..9422460
--- /dev/null
+++ b/configs/shared/.gdbinit
@@ -0,0 +1 @@
+set disassembly-flavor intel
diff --git a/configs/shared/.gitconfig b/configs/shared/.gitconfig
new file mode 100644
index 0000000..e1344a8
--- /dev/null
+++ b/configs/shared/.gitconfig
@@ -0,0 +1,20 @@
+[user]
+ name = Eugene Triguba
+ email = eugenetriguba@gmail.com
+ signingkey = 36403459D7521702
+[core]
+ editor = vim
+ whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
+ excludesfile = ~/.gitignore
+[alias]
+ undo = reset HEAD~
+[pull]
+ ff = only
+[fetch]
+ prune = true
+[diff]
+ colorMoved = zebra
+[init]
+ defaultBranch = main
+[commit]
+ gpgsign = true
diff --git a/configs/shared/.tmux.conf b/configs/shared/.tmux.conf
new file mode 100644
index 0000000..207d7e8
--- /dev/null
+++ b/configs/shared/.tmux.conf
@@ -0,0 +1 @@
+set -g mouse on
diff --git a/configs/shared/.vimrc b/configs/shared/.vimrc
new file mode 100644
index 0000000..3e05ded
--- /dev/null
+++ b/configs/shared/.vimrc
@@ -0,0 +1,52 @@
+" Syntax highlighting
+colorscheme pablo
+syntax on
+
+" Flash screen instead of beep sound
+set visualbell
+
+" Change how vim represents characters on the screen
+set encoding=utf-8
+
+" Set the encoding of files written
+set fileencoding=utf-8
+
+" Set line numbers
+set number
+
+" don't break up words at end of window width
+set linebreak
+
+" Specify different areas of the screen where splits should occur
+set splitbelow
+set splitright
+
+" Python-specific whitespace file settings
+autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
+" ts - show existing tab with 4 spaces width
+" sw - when indenting with '>', use 4 spaces width
+" sts - control <tab> and <bs> keys to match tabstop
+
+" General whitespace settings
+set shiftwidth=4
+filetype plugin indent on
+
+" Allow backspace to delete indentation and inserted text
+" i.e. how it works in most programs
+set backspace=indent,eol,start
+" indent allow backspacing over autoindent
+" eol allow backspacing over line breaks (join lines)
+" start allow backspacing over the start of insert; CTRL-W and CTRL-U
+" stop once at the start of insert.
+
+call plug#begin("$HOME/.config/nvim/plugged")
+
+Plug 'Valloric/YouCompleteMe'
+Plug 'junegunn/fzf'
+
+Plug 'airblade/vim-gitgutter'
+Plug 'tpope/vim-fugitive'
+
+Plug 'editorconfig/editorconfig-vim'
+
+call plug#end()
diff --git a/configs/shared/.zshrc b/configs/shared/.zshrc
new file mode 100644
index 0000000..a6cb5e3
--- /dev/null
+++ b/configs/shared/.zshrc
@@ -0,0 +1,73 @@
+autoload -Uz vcs_info
+zstyle ":vcs_info:*" enable git svn
+zstyle ":vcs_info:git*" formats "- (%b) "
+precmd() {
+ vcs_info
+}
+setopt prompt_subst
+prompt="%2/ ${vcs_info_msg_0_}> "
+
+export EDITOR="nvim"
+export BROWSER="firefox"
+export PAGER="less"
+
+export SRC_DIR="$HOME/src"
+export BIN_DIR="$HOME/bin"
+
+export PATH="$HOME/.poetry/bin:$PATH"
+export PATH="$HOME/.pyenv/bin:$PATH"
+export PATH=$PATH:$GOPATH/bin
+export PATH=$PATH:$GOROOT/bin
+export PATH="$PATH:$HOME/.local/bin"
+export PATH="$BIN_DIR:$PATH"
+
+export GOPATH=$SRC_DIR/go
+export GOBIN=$SRC_DIR/go/bin
+
+alias gs="git status"
+alias gc="git commit"
+alias ga="git add"
+alias gd="git diff"
+alias gds="git diff --staged"
+alias gp="git push"
+alias gpo='git push origin'
+alias gplrb='git pull --rebase'
+alias gpl="git pull"
+alias gl='git log'
+alias gch="git checkout"
+alias gcb='git checkout -b'
+alias gv='git log --graph --decorate --oneline'
+
+alias h="history 25"
+alias j="jobs -l"
+alias l="ls -alG"
+alias o="xdg-open ."
+alias open="xdg-open"
+
+alias vi="nvim"
+alias vim="nvim"
+
+# "Compile C Program"
+#
+# $1: Program Name
+# $2: Output File (default: a.out)
+# $3: C Standard (default: c11)
+#
+# Example: ccp main.c main c99
+ccp() {
+ local prog_name=$1
+ local output_file=${2:a.out}
+ local std=${3:c11}
+
+ cc -Wall -W -pedantic -ansi -std=$std -o $output_file $prog_name
+}
+
+memcheck() {
+ G_DEBUG=always-malloc valgrind --tool=memcheck --leak-check=full --show-reachable=yes -s $1
+}
+
+gocover() {
+ t="/tmp/go-cover.$$.tmp"
+ go test -coverprofile=$t $@ && go tool cover -html=$t && unlink $t
+}
+
diff --git a/configs/shared/alacritty.yml b/configs/shared/alacritty.yml
new file mode 100644
index 0000000..bbec93c
--- /dev/null
+++ b/configs/shared/alacritty.yml
@@ -0,0 +1,11 @@
+font:
+ normal:
+ family: Hack
+ style: Regular
+
+window:
+ padding:
+ x: 8
+ y: 8
+ dynamic_padding: true
+