Add set timezone

This commit is contained in:
2025-06-17 14:12:26 +02:00
parent 0dc59d2002
commit 6b3545f865

View File

@ -246,53 +246,53 @@ echo
# Installing base system.
echo "Installing basic packages.."
# Basis-Pakete
# Base packages
base_packages=(
base
btrfs-progs
base # Arch Linux Base
btrfs-progs # Btrfs
firefox
konsole
konsole # Terminal
linux
linux-firmware
linux-zen
nano
nano # Editor
networkmanager
sddm
sddm-kcm
sddm # Display Manager
sddm-kcm # KConfig module
sudo
xorg-xwayland
plasma-desktop
plasma-nm
plasma-nm # Network manager applet
)
# Notwendige Plasma-Integrationen
# Necessary Plasma integrations
plasma_integrations=(
plasma-pa
breeze-gtk
kde-gtk-config
kdeplasma-addons
kscreen
plasma-pa # Audio applet
breeze-gtk # Widget theme
kde-gtk-config # Syncs KDE settings to GTK applications
kdeplasma-addons # Misc addons: https://github.com/KDE/kdeplasma-addons
kscreen # Adds screen management to settings
plasma-browser-integration
powerdevil
powerdevil # Power management
)
# KDE Utilities
kde_utils=(
ark
bluedevil
discover
dolphin
filelight
gwenview
kate
kcalc
kdeconnect
kinfocenter
kmag
ark # Archiving tool
bluedevil # Bluetooth
discover # GUI package management
dolphin # File browser
filelight # Disk usage analyzer
gwenview # Image viewer
kate # Text editor
kcalc # Calculator
kdeconnect # Mobile synchronisation tool
kinfocenter # System information
#kmag # Doesn't work on Wayland
plasma-systemmonitor
okular
partitionmanager
spectacle
okular # PDF viewer
partitionmanager # partitioning utility
spectacle # Screenshot utility
)
# Additional default software
@ -304,7 +304,7 @@ default_software=(
wireplumber
)
# Alle Pakete zusammenführen
# Put all packages together
all_packages=(
"${base_packages[@]}"
"${plasma_integrations[@]}"
@ -312,25 +312,30 @@ all_packages=(
"${default_software[@]}"
)
# Pakete installieren
# Install packages
pacstrap "/mnt" "${all_packages[@]}"
echo "Base system installed."
echo
# Generating fstab.
# Generating fstab
echo "Generating fstab.."
genfstab -Up "/mnt" > "/mnt/etc/fstab"
echo "Done."
echo
# Setting hostname.
# Setting timezone
echo "Setting timezone.."
arch-chroot "/mnt" ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
arch-chroot "/mnt" hwclock --systohc
# Setting hostname
echo "Setting hostname.."
echo "${host}" > "/mnt/etc/hostname"
echo "Done."
echo
# Setting locale.
# Setting locale
echo "Setting and generating locale.."
cat << EOF > "/mnt/etc/locale.gen"
en_US.UTF-8 UTF-8