.automated_script.sh: seed user home from /etc/skel after archinstall

archinstall creates the user from user_credentials.json BEFORE installing
the 'additional packages' list, so when omarchy-settings populates
/etc/skel/.config/... later in the pacstrap, the user's home has already
been created from an empty skel and missed the seed (user boots into a
terminal with no Hyprland configs).

Copy /etc/skel into /home/$OMARCHY_USER after archinstall finishes (by
which point omarchy-settings has populated skel) and chown to the user.
cp -rT keeps it idempotent: existing files get overwritten, dirs merge.
This commit is contained in:
Ryan Hughes committed 2026-05-21 00:08:33 -04:00
1 parent 874e6cd24d
commit 53bc2550f9
1 file changed
+12 -4
+12 -4
View File
@@ -48,10 +48,18 @@ install_arch() {
install_omarchy() {
# archinstall pacstrap'd omarchy + omarchy-installer (which pulls
# omarchy-settings + omarchy-limine) so /etc/skel is populated before user
# creation. But omarchy itself only hard-depends on the bricking set; the
# rest of the default install set lives in omarchy-base.packages and gets
# installed here in the chroot.
# omarchy-settings + omarchy-limine) and created the user. The user's
# home is missing /etc/skel content though, because archinstall creates
# the user BEFORE installing the additional packages list (we saw user
# creation at "Creating user $OMARCHY_USER" then omarchy-settings
# installing /etc/skel/.config/... much later). Seed it now.
arch-chroot /mnt bash -c "
cp -rT /etc/skel /home/$OMARCHY_USER/
chown -R $OMARCHY_USER:$OMARCHY_USER /home/$OMARCHY_USER/
"
# Install the rest of the default Omarchy install set (everything in
# omarchy-base.packages that isn't already a hard dep of omarchy).
arch-chroot /mnt bash -c '
mapfile -t pkgs < <(grep -v "^#\|^$" /usr/share/omarchy/install/omarchy-base.packages)
pacman -S --noconfirm --needed "${pkgs[@]}"