Notes pour l'installation de Nyx

installation

# pour voir si on est en UEFI
ls /sys/firmware/efi/efivars
# pour voir si on a internet en eth
ping artemix.org
timedatectl set-ntp true

fdisk -l
DISK=/dev/sdb
SYS=${DISK}1
SWAP=${DISK}2
BOOT=${DISK}3

# partitioningo
parted $DISK -- mklabel gpt
parted $DISK -- mkpart primary 512MiB -32GiB
parted $DISK -- mkpart primary linux-swap -32GiB 100%
parted $DISK -- mkpart ESP fat32 1MiB 512MiB
parted $DISK -- set 3 boot on

# formatting
mkfs.ext4 -L linux $SYS
mkswap -L swap $SWAP
mkfs.fat -F 32 -n BOOT $BOOT

# mounting
mount $SYS /mnt
mkdir -p /mnt/boot
mount $BOOT /mnt/boot
swapon $SWAP

# installation
cat <<EOF >> /etc/pacman.conf
[multilib]
Include = /etc/pacman.d/mirrorlist
EOF
pacstrap /mnt base base-devel linux linux-headers linux-firmware amd-ucode systemd-boot efibootmgr os-prober exfat-utils ntfs-3g neovim man-db man-pages texinfo networkmanager curl wget sudo go zsh git xorg xf86-video-amdgpu mesa xfce4 sddm pulseaudio pulseaudio-alsa pulseaudio-bluetooth bluez bluez-utils blueman mlocate cups cups-pdf vlc firefox racket ttf-jetbrains-mono jdk-openjdk java-openjfx jre8-openjdk kitty simple-scan krita syncthing steam discord keybase keybase-gui docker wireguard-tools aws-cli deluge evolution python fractal kdenlive graphviz imagemagick obs-studio libreoffice-still pandoc asciidoctor xournalpp restic gnupg 
genfstab -U /mnt >> /mnt/etc/fstab
vim /mnt/etc/fstab
arch-chroot /mnt

# bootloader setup
# TODO manual

# setting up basics
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'diane-pc' > /etc/hostname
cat <<EOF > /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 diane-pc.localdomain diane-pc
EOF
systemctl enable sddm bluetooth org.cups.cupsd
updatedb

# setting up user folders
git clone https://gitlab.com/Artemix/dotfiles -b nyx --recurse-submodules /home/diane
useradd -m -G sys,network,power,docker,lp,wheel,rfkill -s zsh diane
passwd diane
chown -R diane:diane /home/diane

# setting up yay
su diane
git clone https://aur.archlinux.org/yay.git /tmp/yay
cd /tmp/yay
makepkg
exit
pacman -U /tmp/yay/yay-*.tar.xz

# rebooting
exit
reboot