feat: suckless install + pkg cleanup
This commit is contained in:
parent
99b8d39fec
commit
281b1be077
@ -7,7 +7,7 @@ and more!
|
|||||||
Follow the [Pre-installation](https://wiki.archlinux.org/title/Installation_guide#Pre-installation).
|
Follow the [Pre-installation](https://wiki.archlinux.org/title/Installation_guide#Pre-installation).
|
||||||
Once you mounted the partitions, clone this script
|
Once you mounted the partitions, clone this script
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.maby.dev/ange/archinstall /tmp/ai && cd "$_"
|
git clone https://git.maby.dev/ange/archinstall /tmp/ai && cd -- "$_"
|
||||||
```
|
```
|
||||||
|
|
||||||
To install the base system, run:
|
To install the base system, run:
|
||||||
|
10
config
10
config
@ -1,5 +1,6 @@
|
|||||||
# User Variables
|
# User Variables
|
||||||
# Comment to disable
|
# Comment to disable
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
|
||||||
#swapfile=2048
|
#swapfile=2048
|
||||||
swapfile=auto # auto|MB
|
swapfile=auto # auto|MB
|
||||||
@ -12,22 +13,22 @@ default_shell=/bin/zsh
|
|||||||
|
|
||||||
hostname="$username-pc"
|
hostname="$username-pc"
|
||||||
|
|
||||||
tz='Europe/Paris'
|
tz=Europe/Paris
|
||||||
locales=(
|
locales=(
|
||||||
'en_US'
|
en_US
|
||||||
)
|
)
|
||||||
lang="${locales[0]}"
|
lang="${locales[0]}"
|
||||||
|
|
||||||
pkg=(
|
pkg=(
|
||||||
base{,-devel} man-{db,pages} tldr
|
base{,-devel} man-{db,pages} tldr
|
||||||
efibootmgr
|
efibootmgr
|
||||||
|
fastfetch
|
||||||
git
|
git
|
||||||
htop
|
gvfs{,-gphoto2,-mtp} dosfstools exfatprogs
|
||||||
iwd iptables-nft wireguard-tools bind gnu-netcat
|
iwd iptables-nft wireguard-tools bind gnu-netcat
|
||||||
jq
|
jq
|
||||||
lf
|
lf
|
||||||
linux{,-lts,-firmware} mkinitcpio
|
linux{,-lts,-firmware} mkinitcpio
|
||||||
neofetch
|
|
||||||
neovim{,-lspconfig} python-{pynvim,black} ripgrep bash-language-server pyright
|
neovim{,-lspconfig} python-{pynvim,black} ripgrep bash-language-server pyright
|
||||||
opendoas
|
opendoas
|
||||||
openssh
|
openssh
|
||||||
@ -38,7 +39,6 @@ pkg=(
|
|||||||
rsync
|
rsync
|
||||||
terminus-font awesome-terminal-fonts
|
terminus-font awesome-terminal-fonts
|
||||||
tlp
|
tlp
|
||||||
udisks2 dosfstools exfatprogs
|
|
||||||
zsh fzf
|
zsh fzf
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
# User Variables
|
# User Variables
|
||||||
# Comment to disable
|
# Comment to disable
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
|
||||||
pkg=(
|
pkg=(
|
||||||
aerc w3m
|
aerc w3m
|
||||||
alacritty
|
|
||||||
bluez{,-utils}
|
bluez{,-utils}
|
||||||
dunst libnotify
|
dunst libnotify
|
||||||
feh
|
feh
|
||||||
gammastep
|
gammastep
|
||||||
graphicsmagick
|
graphicsmagick ghostscript
|
||||||
materia-gtk-theme papirus-icon-theme
|
materia-gtk-theme papirus-icon-theme
|
||||||
monero
|
monero
|
||||||
mpv
|
mpv
|
||||||
@ -16,11 +16,12 @@ pkg=(
|
|||||||
noto-fonts{,-cjk,-emoji} ttf-{dejavu,liberation} otf-font-awesome
|
noto-fonts{,-cjk,-emoji} ttf-{dejavu,liberation} otf-font-awesome
|
||||||
pass{,-otp} gcr
|
pass{,-otp} gcr
|
||||||
pcmanfm-gtk3
|
pcmanfm-gtk3
|
||||||
|
pipewire{,-pulse,-jack} pavucontrol playerctl
|
||||||
polkit-gnome
|
polkit-gnome
|
||||||
qemu-{base,audio-pipewire,hw-display-virtio-{gpu,vga},ui-gtk} dnsmasq
|
qemu-{base,audio-pipewire,hw-usb-host,hw-display-virtio-{gpu,vga},ui-gtk} dnsmasq
|
||||||
wireplumber pipewire{,-pulse,-jack} pavucontrol playerctl
|
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
zathura{,-pdf-poppler}
|
||||||
zenity
|
zenity
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -28,6 +29,7 @@ flatpakpkg=(
|
|||||||
com.valvesoftware.Steam
|
com.valvesoftware.Steam
|
||||||
net.lutris.Lutris
|
net.lutris.Lutris
|
||||||
org.gimp.GIMP
|
org.gimp.GIMP
|
||||||
|
org.gtk.Gtk3theme.Materia-dark
|
||||||
org.mozilla.firefox
|
org.mozilla.firefox
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# User Variables
|
# User Variables
|
||||||
# Comment to disable
|
# Comment to disable
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
|
||||||
pkg=(
|
pkg=(
|
||||||
autorandr
|
autorandr
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
cd "$(dirname "$0")"
|
cd -- "$(dirname "$0")"
|
||||||
. ../../src/lib.sh
|
. ../../src/lib.sh
|
||||||
|
|
||||||
cp -rfT rootfs/ /mnt/
|
cp -rfT rootfs/ /mnt/
|
||||||
|
@ -17,3 +17,6 @@ case "$(lsmod)" in
|
|||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
git clone --depth 1 https://git.maby.dev/ange/.dotfiles /tmp/dotfiles
|
||||||
|
/tmp/dotfiles/.config/suckless/update.sh
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
cd "$(dirname "$0")"
|
cd -- "$(dirname "$0")"
|
||||||
. ../src/lib.sh
|
. ../src/lib.sh
|
||||||
|
|
||||||
cat config ../src/lib.sh src/install.sh | arch-chroot /mnt/ bash -ex
|
cat config ../src/lib.sh src/install.sh | arch-chroot /mnt/ bash -ex
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
pac "${pkg[@]}" flatpak xdg-desktop-portal-gtk mesa
|
pac "${pkg[@]}" flatpak xdg-desktop-portal-gtk
|
||||||
flatpak install -y "${flatpakpkg[@]}"
|
flatpak install -y "${flatpakpkg[@]}"
|
||||||
|
|
||||||
case "$(lspci | grep 'VGA\|3D')" in
|
case "$(lspci | grep 'VGA\|3D')" in
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
cd "$(dirname "$0")"
|
cd -- "$(dirname "$0")"
|
||||||
. ./config
|
. ./config
|
||||||
. ./src/lib.sh
|
. ./src/lib.sh
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
cd "$(dirname "$0")"
|
cd -- "$(dirname "$0")"
|
||||||
. ./config
|
. ./config
|
||||||
. ./src/lib.sh
|
. ./src/lib.sh
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ for l in "${locales[@]}"; do
|
|||||||
done
|
done
|
||||||
locale-gen
|
locale-gen
|
||||||
echo "LANG=$lang.UTF-8" > /etc/locale.conf
|
echo "LANG=$lang.UTF-8" > /etc/locale.conf
|
||||||
echo "$hostname" > /etc/hostname
|
echo - "$hostname" > /etc/hostname
|
||||||
|
|
||||||
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
|
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
|
||||||
|
|
||||||
@ -25,12 +25,12 @@ systemctl enable \
|
|||||||
# Users
|
# Users
|
||||||
echo "root:$root_passwd" | chpasswd
|
echo "root:$root_passwd" | chpasswd
|
||||||
useradd -mG wheel,video "$username" -s "${default_shell-/bin/bash}"
|
useradd -mG wheel,video "$username" -s "${default_shell-/bin/bash}"
|
||||||
echo "$username:$user_passwd" | chpasswd
|
echo - "$username:$user_passwd" | chpasswd
|
||||||
|
|
||||||
# ucode
|
# ucode
|
||||||
case "$(lscpu)" in
|
case "$(lscpu)" in
|
||||||
*Intel*) pac amd-ucode ;;
|
*AMD*) pac amd-ucode ;;
|
||||||
*AMD*) pac intel-ucode ;;
|
*Intel*) pac intel-ucode ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user