From 53bc2550f9129c24315e2ddf15eb49e6afe50770 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Thu, 21 May 2026 00:08:33 -0400 Subject: [PATCH] .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. --- configs/airootfs/root/.automated_script.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configs/airootfs/root/.automated_script.sh b/configs/airootfs/root/.automated_script.sh index ce462a7..5f5e5c9 100644 --- a/configs/airootfs/root/.automated_script.sh +++ b/configs/airootfs/root/.automated_script.sh @@ -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[@]}"