diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-10-28 12:09:57 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-10-28 12:09:57 +0200 |
commit | 47d30b3c5b10812010c25ced00e4b418c37f8aa3 (patch) | |
tree | 649cb023e4109058261ae40b0d991aed24c0e6aa /.config | |
parent | b9b21873c0d7ba1ab6dd5cc70d16e69bcd57fb27 (diff) |
Diffstat (limited to '.config')
-rw-r--r-- | .config/borg/.env-backup.example | 2 | ||||
-rwxr-xr-x | .config/yadm/bootstrap | 41 |
2 files changed, 40 insertions, 3 deletions
diff --git a/.config/borg/.env-backup.example b/.config/borg/.env-backup.example new file mode 100644 index 0000000..700aaeb --- /dev/null +++ b/.config/borg/.env-backup.example @@ -0,0 +1,2 @@ +export BORG_REPO="/media/backup" +export BACKUP_PATH="/media/files" diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 2f26097..0cccda6 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -4,13 +4,48 @@ sudo pacman -Sy \ zsh neovim man-db \ eza btop cron \ python \ + borg smartmontools \ firefox \ docker docker-compose -chsh -s /bin/zsh usermod -a -G docker $(whoami) sudo systemctl enable docker.service --now -CRON_UPDATE="0 3 * * * update" -(crontab -l; echo "$CRON_UPDATE") | crontab - + +# +# Shell +# + +chsh -s /bin/zsh + +ZSH=$HOME/.config/zsh/ohmyzsh +if [ ! -d "$ZSH" ]; then + sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +fi + + +# +# System +# + +sed -i 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/' /etc/systemd/logind.conf + +sed -i 's/# %wheel/%wheel/' /etc/sudoers + +#CRON_UPDATE="0 3 * * * update" +#(crontab -l; echo "$CRON_UPDATE") | crontab - + + +# Backup + +#CRON_BACKUP_RUN="0 4 * * * backup-run" +#(crontab -l; echo "$CRON_BACKUP_RUN") | crontab - + +#CRON_BACKUP_PRUNE="0 4 * * * backup-prune" +#(crontab -l; echo "$CRON_BACKUP_PRUNE") | crontab - + + +# Storage + +sudo systemctl enable smartd --now |