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