diff --git a/additional-setup.md b/additional-setup.md index 38e9adef..37b0c3a6 100644 --- a/additional-setup.md +++ b/additional-setup.md @@ -1,51 +1,90 @@ # Additional Setup -The following documents Void setup that wasn't automated with ansible +The following documents Void setup that wasn't automated with ansible. -## Wireguard Client (outdated) +## Radicale and vdirsyncer for contacts/calendar -Wireguard is nice for a home vpn. +[Radicale](https://radicale.org/v3.html) is hosted on my home server to provide +DAV synced calendars and contacts. [Vdirsyncer](https://github.com/pimutils/vdirsyncer) +allows for the files to be synced to the linux filesystem for desktop usage +with [khard](https://github.com/lucc/khard) and [khal](https://github.com/pimutils/khal). +The config files are auto-populated by chezmoi with credentials from bitwarden +run the following commands to setup vdirsyncer files: + +```bash +vdirsyncer -c ~/.config/vdirsyncer/config_calendar discover +vdirsyncer -c ~/.config/vdirsyncer/config_contacts discover +``` + +Files can be later synced with the following commands: + +```bash +vdirsyncer -c ~/.config/vdirsyncer/config_calendar sync +vdirsyncer -c ~/.config/vdirsyncer/config_contacts sync +``` + +## Wireguard Client + +Wireguard is nice for a home vpn and [pivpn](https://pivpn.io/) makes it easy. 1. Create client on server and copy resulting `.conf` file to `/etc/wireguard` -2. Add connection with nmcli +2. Start/stop vpn with `wg-quick` + +## BTRFS back-ups with btrbk + +[btrbk](https://github.com/digint/btrbk) is used to create snapshots of the +root and user volumes. User volumes are backed-up to my home server (Torus), +but root is only stored locally. ```bash -sudo nmcli connection import type wireguard file /etc/wireguard/your-wg-file.conf +sudo btrbk -c ~/.config/btrbk/home_btrbk.conf -v run # snapshot /home/ +sudo btrbk -c ~/.config/btrbk/root_btrbk.conf -v run # snapshot / ``` -The vpn can be enable/disabled through gnome. +SSH keypair is used for password-less root ssh for remote back-up. See +[ssh setup](https://github.com/digint/btrbk#setting-up-ssh) from the btrbk +readme. -## btrbk - -[btrbk](https://github.com/digint/btrbk) is used to create (currently only local) snapshots of the root and user volumes. - -```bash -sudo btrbk -c ~/.config/btrbk/home_btrbk.conf -v run # creates user backups and snapshots -sudo btrbk -c ~/.config/btrbk/root_btrbk.conf -v run # creates root snapshots -``` - -SSH keypair is used for password-less root ssh for remote back-up. See btrbk README. - -anacron is used for daily backups. Copy `home_backup.sh` to `/etc/cron.daily`. +anacron is used for daily backups. Copy `home_backup.sh` from the config folder +to `/etc/cron.daily`. ## Mount network drives -I find fstab messing about more troubule than it is worth. Mount network drives when needed with the following commands: +I find fstab messing about more troubule than it is worth. Mount network drives +when needed with the following command: -Engi:`linux-mount-engi` +```bash +linux-mount- +``` ## Taskopen for taskwarrior -taskopen needs is easier to install manually at this point since it isn't packaged and uses nim. Might get this automated in the future. +[taskopen](https://github.com/jschlatow/taskopeni) is easier to install +manually at this point since it isn't packaged and uses nim. Might get this +automated in the future. ```bash -curl https://nim-lang.org/choosenim/init.sh -sSf | sh # install nim for compile +curl https://nim-lang.org/choosenim/init.sh -sSf | sh # install nim git clone https://github.com/jschlatow/taskopen.git cd taskopen make PREFIX=/usr sudo make PREFIX=/usr install ``` -## Needs documentation... -- syncthing -- firefox setup -- vdirsyncer for contacts/calendar + +## Syncthing + +Syncthing is used to sync folders between various computers and android. The +ansible script should setup and run the service, but shares must be setup +via the web gui. Currently four shares exists: +- `.warrior` - `.task` and `.timewarrior` folders to sync taskwarrior tasks. +These two folders are symlinked to the home folder where taskwarrior/timewarrior +expects them. +- `warrior` - contains text files associated with taskwarrior (mostly from +taskopen). +- `phone photos` - personal photos synched from android. +- `phone screenshots` - personal screenshots synced from android. + +## Lxappearance + +My GTK theme is pulled down by chezmoi, but isn't active by default. This can +be fixed with the lxappearance gui. diff --git a/home/dot_config/i3/config.tmpl b/home/dot_config/i3/config.tmpl index 7dd26350..375723b5 100644 --- a/home/dot_config/i3/config.tmpl +++ b/home/dot_config/i3/config.tmpl @@ -235,4 +235,4 @@ exec --no-startup-id "autorandr --change && i3-msg restart" exec --no-startup-id "pipewire & pipewire-pulse &" exec_always --no-startup-id "$HOME/.config/i3/scripts/polybar.sh" exec_always --no-startup-id "blueman-applet" -exec_always --no-startup-id nitrogen --restore +exec_always --no-startup-id "xsetroot -solid '#282A36'" diff --git a/home/dot_config/nvim/lua/tstarr/set.lua b/home/dot_config/nvim/lua/tstarr/set.lua index 6474ba0b..2150ec23 100644 --- a/home/dot_config/nvim/lua/tstarr/set.lua +++ b/home/dot_config/nvim/lua/tstarr/set.lua @@ -39,3 +39,5 @@ vim.opt.updatetime = 50 vim.opt.shortmess:append("c") vim.g.mapleader = " " + +vim.opt.colorcolumn = "80" diff --git a/home/dot_config/polybar/dracula.tmpl b/home/dot_config/polybar/dracula.tmpl index 1a4961de..a7989575 100644 --- a/home/dot_config/polybar/dracula.tmpl +++ b/home/dot_config/polybar/dracula.tmpl @@ -74,7 +74,7 @@ content-padding = 2 type = internal/network interface = {{ .network_interface }} interval = 5 -label-connected =  %downspeed%  %upspeed% +label-connected =  %downspeed%  %upspeed% label-disconnected = content-padding = 2 diff --git a/home/dot_zshrc b/home/dot_zshrc index 80c43b06..1214911f 100644 --- a/home/dot_zshrc +++ b/home/dot_zshrc @@ -126,3 +126,5 @@ alias te='trash-empty' alias tl='trash-list' alias tre='trash-restore' alias trm='trash-rm' + +export GPG_TTY=$(tty) diff --git a/void.md b/void.md deleted file mode 100644 index 1a47a0b0..00000000 --- a/void.md +++ /dev/null @@ -1,3 +0,0 @@ -## Lxappearance - -GTK theme can be set with lxappearance