diff --git a/install.sh b/install.sh index 48e0a88..7479320 100644 --- a/install.sh +++ b/install.sh @@ -223,6 +223,7 @@ basic_packages=( "htop" "fzf" "sudo" +) #"pipewire" #"pipewire-pulse" #"pipewire-jack" @@ -239,7 +240,7 @@ basic_packages=( #"bluez" #"bluez-utils" #"usbutils" # for lsusb -) +#) all_packages=( ${kernel_packages[@]} ${fs_packages[@]} @@ -254,45 +255,42 @@ genfstab -L -p /mnt >> /mnt/etc/fstab sed -i "s+LABEL=swap+/dev/mapper/swap+" /mnt/etc/fstab echo "cryptswap /dev/disk/by-partlabel/cryptswap /dev/urandom swap,cipher=aes-xts-plain64,size=256" >> /mnt/etc/crypttab -systemd-nspawn -bD /mnt +sed -i 's/^#en_US\.UTF-8/en_US\.UTF-8/' /mnt/etc/locale.gen +sed -i 's/^#de_DE\.UTF-8/de_DE\.UTF-8/' /mnt/etc/locale.gen +arch-chroot /mnt locale-gen -sed -i 's/^#en_US\.UTF-8/en_US\.UTF-8/' /etc/locale.gen -sed -i 's/^#de_DE\.UTF-8/de_DE\.UTF-8/' /etc/locale.gen -locale-gen - -systemd-firstboot \ +arch-chroot /mnt systemd-firstboot \ --locale="en_US.UTF-8" \ --keymap="de-latin1" \ --timezone="Europe/Berlin" \ --hostname="${hostname}" \ --setup-machine-id -echo "FONT=$font" > /etc/vconsole.conf -echo -e "127.0.0.1\tlocalhost" >> /etc/hosts -echo -e "127.0.1.1\t$hostname" >> /etc/hosts -echo -e "\n::1\tlocalhost" >> /etc/hosts -timedatectl set-ntp 1 +echo "FONT=$font" > /mnt/etc/vconsole.conf +echo -e "127.0.0.1\tlocalhost" >> /mnt/etc/hosts +echo -e "127.0.1.1\t$hostname" >> /mnt/etc/hosts +echo -e "\n::1\tlocalhost" >> /mnt/etc/hosts +arch-chroot /mnt timedatectl set-ntp 1 echo -e "\n### Creating user" -useradd -m "$user" +arch-chroot /mnt useradd -m "$user" for group in wheel network video audio input storage power; do - groupadd -rf "$group" - gpasswd -a "$user" "$group" + arch-chroot /mnt groupadd -rf "$group" + arch-chroot /mnt gpasswd -a "$user" "$group" done -echo "$user:$password" | chpasswd +echo "$user:$password" | arch-chroot /mnt chpasswd echo -e "\n### Disabling root login" -passwd -dl root +arch-chroot /mnt passwd -dl root echo -e "\n### Setting permissions on the custom repo" -chown -R "$user:$user" "/var/cache/pacman/${user}-local/" +arch-chroot /mnt chown -R "$user:$user" "/var/cache/pacman/${user}-local/" #echo -e "\n### Cloning dotfiles and running initial setup" -#sudo -u $user sh -c 'chezmoi init --apply https://code.strobeto.de/strobeltobias/dotfiles.git && chezmoi state delete-bucket --bucket=scriptState' +#arch-chroot /mnt sudo -u $user sh -c 'chezmoi init --apply https://code.strobeto.de/strobeltobias/dotfiles.git && chezmoi state delete-bucket --bucket=scriptState' -cat > /etc/NetworkManager/conf.d/wifi_backend.conf < /mnt/etc/NetworkManager/conf.d/wifi_backend.conf <