Skip to content

Commit 512902d

Browse files
Save changes at: 1773860911
1 parent c157513 commit 512902d

6 files changed

Lines changed: 429 additions & 109 deletions

File tree

base.sh

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function main() {
2828
configure_ntp
2929
configure_wakeup
3030
packages
31-
drivers
3231
services
3332
finish
3433
}
@@ -279,6 +278,9 @@ EOF
279278
}
280279

281280
function configure_user() {
281+
# /etc/sudoers.d/
282+
# https://github.com/basecamp/omarchy/blob/dev/install/post-install/allow-reboot.sh
283+
282284
echo "==> Create user."
283285
arch-chroot /mnt useradd --create-home --shell=/bin/bash --gid=users --groups=wheel,uucp,video --password="$PASSWORD_USER" --comment="$USERCOMMENT" "$USERNAME"
284286
arch-chroot /mnt sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
@@ -391,26 +393,14 @@ function packages() {
391393
ca-certificates
392394
curl
393395
dosfstools
394-
foomatic-db
395-
foomatic-db-engine
396-
foomatic-db-ppds
397-
fzf
398-
ghostscript
399396
git
400-
go
401-
gsfonts
402-
hplip
403397
htop
404398
less
405399
libusb
406400
links
407401
neofetch
408402
net-tools
409-
networkmanager-openvpn
410403
nmap
411-
openvpn
412-
pass
413-
pass-otp
414404
rsync
415405
testdisk
416406
tmux
@@ -430,19 +420,6 @@ function packages() {
430420
done
431421
}
432422

433-
function drivers() {
434-
echo "==> Install drivers."
435-
arch-chroot /mnt pacman --sync --noconfirm --needed \
436-
alsa-firmware \
437-
alsa-utils \
438-
pulseaudio \
439-
pulseaudio-alsa \
440-
pipewire \
441-
pipewire-alsa \
442-
ddcutil \
443-
&> /dev/null
444-
}
445-
446423
function services() {
447424
echo "==> Enable services."
448425
arch-chroot /mnt systemctl enable NetworkManager &> /dev/null

fonts.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
function main() {
55
echo "--> Install fonts."
66
sudo pacman -S --noconfirm --needed \
7-
# nerd-fonts
7+
adobe-source-code-pro-fonts \
88
noto-fonts \
99
noto-fonts-cjk \
1010
noto-fonts-emoji \
1111
noto-fonts-extra \
12-
ttf-liberation \
1312
ttf-dejavu \
14-
ttf-roboto \
15-
ttf-jetbrains-mono \
1613
ttf-fira-code \
1714
ttf-hack \
18-
adobe-source-code-pro-fonts \
15+
ttf-jetbrains-mono \
16+
ttf-jetbrains-mono-nerd \
17+
ttf-liberation \
18+
ttf-roboto \
1919
&> /dev/null
2020

2121
sudo fc-cache -fv

macbook.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
# set -eu
3+
4+
function main() {
5+
echo "==> Install drivers."
6+
sudo pacman --sync --noconfirm broadcom-wl-dkms
7+
sudo modprobe wl
8+
#nmcli device wifi list
9+
#sudo nmcli device wifi connect YourSSID password YourPassword
10+
11+
sudo pacman --sync --noconfirm --needed \
12+
pipewire \
13+
pipewire-alsa \
14+
pipewire-pulse \
15+
wireplumber \
16+
alsa-utils \
17+
pamixer \
18+
playerctl
19+
&> /dev/null
20+
21+
echo "==> Enable services."
22+
23+
systemctl --user enable --now pipewire pipewire-pulse wireplumber
24+
#pactl info
25+
#pactl list short sinks
26+
# speaker-test -c 2
27+
}
28+
29+
main

packages.sh

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,46 @@
22
# set -eu
33

44
function main() {
5-
yay_install
65
install_packages
6+
install_yay
7+
install_yay_packages
78
install_docker
89
install_virtualbox
910
install_electronics
1011
install_latex
1112
}
1213

13-
function yay_install() {
14+
function install_packages() {
15+
echo "--> Install aditional packages."
16+
sudo pacman -S --noconfirm --needed \
17+
alacritty \
18+
bat \
19+
fd \
20+
ffmpeg \
21+
go \
22+
helix \
23+
helm \
24+
imagemagick \
25+
jq \
26+
kubectl \
27+
lsd \
28+
minikube \
29+
nicotine+ \
30+
p7zip \
31+
percona-server-clients \
32+
percona-toolkit \
33+
poppler \
34+
ripgrep \
35+
shellcheck \
36+
ttf-nerd-fonts-symbols \
37+
virtualbox \
38+
yazi \
39+
zellij \
40+
zoxide \
41+
&> /dev/null
42+
}
43+
44+
function install_yay() {
1445
echo "--> Install yay tool."
1546
if ! type "git" > /dev/null; then
1647
echo "Could not find: git"
@@ -44,34 +75,7 @@ function yay_install() {
4475
fi
4576
}
4677

47-
function install_packages() {
48-
echo "--> Install aditional packages."
49-
sudo pacman -S --noconfirm --needed \
50-
alacritty \
51-
bat \
52-
fd \
53-
ffmpeg \
54-
helix \
55-
helm \
56-
imagemagick \
57-
jq \
58-
kubectl \
59-
lsd \
60-
minikube \
61-
nicotine+ \
62-
p7zip \
63-
percona-server-clients \
64-
percona-toolkit \
65-
poppler \
66-
ripgrep \
67-
shellcheck \
68-
ttf-nerd-fonts-symbols \
69-
virtualbox \
70-
yazi \
71-
zellij \
72-
zoxide \
73-
&> /dev/null
74-
78+
function install_yay_packages() {
7579
yay -Sy --noconfirm --needed \
7680
aws-cli-v2 `# AWS CLI` \
7781
aws-session-manager-plugin `# AWS CLI SSM Plugin` \

profile.sh

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# shellcheck disable=SC2119,SC2120
55
function main() {
66
sudo -v
7-
8-
configure_ntp
7+
98
configure_alacritty
109
configure_git
1110
configure_gpg
@@ -14,17 +13,9 @@ function main() {
1413
configure_tmux
1514
configure_udev
1615
configure_vim
17-
configure_vscode
1816
finish
1917
}
2018

21-
function configure_ntp() {
22-
echo "--> Configure time zone and NTP."
23-
timedatectl set-timezone Europe/Madrid
24-
timedatectl set-ntp true
25-
sudo hwclock --systohc
26-
}
27-
2819
function configure_alacritty() {
2920
echo "--> Configure Alacritty."
3021

@@ -103,7 +94,6 @@ alias md="glow --line-numbers --pager"
10394
alias o="dolphin . &> /dev/null &"
10495
alias r="source ~/.bashrc"
10596
alias t="btop"
106-
alias p="pass"
10797
alias copy='xclip -sel clip'
10898
EOF
10999

@@ -746,43 +736,6 @@ set-option -g default-terminal screen-256color
746736
EOF
747737
}
748738

749-
function configure_vscode() {
750-
echo "--> Configure vscode."
751-
752-
mkdir -p "$HOME"/.config/VSCodium/User/
753-
754-
cat > "$HOME"/.config/VSCodium/User/settings.json << 'EOF'
755-
{
756-
"editor.fontSize": 14,
757-
"editor.minimap.enabled": false,
758-
"editor.occurrencesHighlight": "off",
759-
"editor.selectionHighlight": false,
760-
"editor.suggestOnTriggerCharacters": false,
761-
"editor.tabCompletion": "on",
762-
"editor.tabSize": 2,
763-
"editor.quickSuggestions": {
764-
"other": false,
765-
"comments": false,
766-
"strings": false
767-
},
768-
"explorer.confirmDelete": false,
769-
"extensions.ignoreRecommendations": true,
770-
"files.trimTrailingWhitespace": true,
771-
"git.autofetch": true,
772-
"git.confirmSync": false,
773-
"git.ignoreMissingGitWarning": true,
774-
"git.openRepositoryInParentFolders": "always",
775-
"security.workspace.trust.untrustedFiles": "open",
776-
"window.menuBarVisibility": "compact",
777-
"window.titleBarStyle": "custom",
778-
"workbench.activityBar.location": "hidden",
779-
"workbench.colorTheme": "Tokyo Night",
780-
"workbench.iconTheme": "vs-minimal",
781-
"workbench.startupEditor": "none"
782-
}
783-
EOF
784-
}
785-
786739
function configure_udev() {
787740
echo "--> Configure udev rules."
788741

0 commit comments

Comments
 (0)