-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.sh
More file actions
executable file
·98 lines (75 loc) · 2.31 KB
/
configure.sh
File metadata and controls
executable file
·98 lines (75 loc) · 2.31 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash
set -e
SCRIPT_DIR=$(dirname "$0")
cd $SCRIPT_DIR
sudo pacman -Sy archlinux-keyring --noconfirm
if [ ! -x /usr/bin/rsync ] ; then
sudo pacman -S --noconfirm rsync
fi
if [ ! -x /usr/bin/reflector ] ; then
sudo pacman -S --noconfirm reflector
fi
if [ ! -x /usr/bin/git ] ; then
sudo pacman -S --noconfirm git
fi
git remote set-url origin git@github.com:spfaus/dotfiles.git
git config user.name "spfaus"
git config user.email "simon.pfaus@web.de"
git status
sudo reflector --verbose --protocol https --latest 20 --sort rate \
--save /etc/pacman.d/mirrorlist
if [ ! -x /usr/bin/yay ] ; then
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -sic --noconfirm
cd ..
rm -rf yay
fi
yay -Syyuu --noconfirm
sudo pacman -S gnome xorg --noconfirm
yay -S --noconfirm base base-devel linux linux-firmware reflector sudo man-db man-pages \
texinfo networkmanager curl wget rsync git grub efibootmgr dkms linux-headers \
xorg-server gnome-tweaks noto-fonts noto-fonts-cjk noto-fonts-emoji \
noto-fonts-extra ttf-jetbrains-mono-nerd gnome-shell-extension-pop-shell-git yay ntfs-3g \
firefox \
amd-ucode bitwarden anki \
neovim luarocks \
htop \
grub-customizer \
libfido2 \
authenticator \
ncdu \
tldr \
zoxide \
fzf \
mpv \
odin odinfmt \
tree \
xclip \
jq \
ibus-mozc \
libreoffice-fresh \
proton-vpn-gtk-app
# Load all dconf settings
dconf load / < $(pwd)/dconf/full-backup
# Link all user config files
cp -as --remove-destination $(pwd)/home/. $HOME/
# Link all root config files and change owner to root
sudo chown -R root:root $(pwd)/root/
sudo cp -as --remove-destination $(pwd)/root/. /
sudo systemctl enable NetworkManager.service
sudo systemctl enable gdm.service
sudo sed -i -e 's/#Color/Color/g' /etc/pacman.conf
sudo ln -sf /usr/bin/nvim /usr/bin/vim
sudo ln -sf /usr/bin/nvim /usr/bin/vi
sudo timedatectl set-ntp true
sudo hwclock --systohc
sudo locale-gen
yay -Sy
yay -Rs $(yay -Qdtq) --noconfirm # Delete orphans
# Create SSH key if none is found
if [ ! -f ~/.ssh/id_ed25519 ] ; then
ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519 && echo "Created SSH key" && eval \
"$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && echo "Added new SSH key to ssh-agent"
fi
echo "------ All done! ------"