blob: 0cccda6153711790ca52eba8b28d1a193859b204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/bash
sudo pacman -Sy \
zsh neovim man-db \
eza btop cron \
python \
borg smartmontools \
firefox \
docker docker-compose
usermod -a -G docker $(whoami)
sudo systemctl enable docker.service --now
#
# 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
|