From 60c67eecee1e905dd08724d01a30bf66ca911806 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Thu, 14 Aug 2025 19:35:26 +1000 Subject: [PATCH] Multiple updates: add restic to common aliases update puppet functions/modules add restic-backup command --- .config/nvim/lua/func/puppet.lua | 2 ++ .config/password-store | 2 +- .config/shell/aliases | 2 +- .config/shell/common | 4 ++++ .config/yadm/bootstrap | 6 ++++++ bin/restic-backup | 14 ++++++++++++++ 6 files changed, 28 insertions(+), 2 deletions(-) create mode 100755 bin/restic-backup diff --git a/.config/nvim/lua/func/puppet.lua b/.config/nvim/lua/func/puppet.lua index 8781dcc..4d3322e 100644 --- a/.config/nvim/lua/func/puppet.lua +++ b/.config/nvim/lua/func/puppet.lua @@ -62,6 +62,8 @@ function! OpenPuppetProfileOrRole(layout) call add(module_list, 'readarr') call add(module_list, 'redisha') call add(module_list, 'sonarr') + call add(module_list, 'vlcluster') + call add(module_list, 'vmcluster') " Check if the class name starts with 'profiles::' or 'roles::' if classname =~ '^profiles::' diff --git a/.config/password-store b/.config/password-store index 453bd93..140aca8 160000 --- a/.config/password-store +++ b/.config/password-store @@ -1 +1 @@ -Subproject commit 453bd93cf9a7f203d4ad62f078746a94ffd77020 +Subproject commit 140aca8996acf7e16da374be2b6b22fc87b3b8e0 diff --git a/.config/shell/aliases b/.config/shell/aliases index b5bcbeb..27f7107 100644 --- a/.config/shell/aliases +++ b/.config/shell/aliases @@ -72,7 +72,7 @@ alias ypush="yadm push && yadm push origin master" # fix commands alias ipcalc='~/.local/bin/ipcalc -n' alias mpv="mpv -hwdec=vdpau" -alias ifstat="/usr/bin/ifstat" +alias ifstat="/usr/local/bin/ifstat" alias snapper="sudo /usr/bin/snapper" alias ap="~/.local/bin/ansible-playbook" diff --git a/.config/shell/common b/.config/shell/common index 799e743..771cd39 100644 --- a/.config/shell/common +++ b/.config/shell/common @@ -74,6 +74,10 @@ ncurl() { curl --netrc-file <(pass show personal/netrc) "$@" } +export GPG_TTY=$(tty) +export RESTIC_REPOSITORY=s3:https://radosgw.service.consul/restic-personal +export RESTIC_PASSWORD_COMMAND="pass show personal/restic/metabox" + # create function later: # large image heavy pdf into smaller pdf # below will: diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 84f8557..69fd2d3 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -32,3 +32,9 @@ sudo dnf install -y firefox chromium gimp libreoffice dia shotwell thunderbird i tmux udiskie upower vifm virt-manager libvirt jpegoptim poppler-utils qpdf alacritty dunst feh i3 i3blocks \ maim network-manager-applet pavucontrol sway swaylock waybar wl-clipboard grim slurp polybar mpc mpd mpv \ ncmpcpp openvpn + + + +# NPM +npm i opencode-ai@latest +ln -s ~/node_modules/.bin/opencode ~/bin/opencode diff --git a/bin/restic-backup b/bin/restic-backup new file mode 100755 index 0000000..d112e9a --- /dev/null +++ b/bin/restic-backup @@ -0,0 +1,14 @@ +#!/usr/bin/bash +export GPG_TTY=$(tty) +export $(pass show personal/radosgw/benvin) + +restic backup "$HOME" --exclude-caches --one-file-system \ + --exclude '**/.cache' \ + --exclude '**/.terraform' \ + --exclude '**/.terragrunt-cache' \ + --exclude '**/.local/share/containers' \ + --exclude '**/go/pkg/mod' \ + --exclude '**/Downloads' \ + --exclude '**/.thunderbird' \ + --exclude '**/backups' \ + --exclude '**/Video'