Skip to content
Open
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f17ab6c
Add kids mode: child installs with a kid password and a parent password
peterholko Sep 2, 2026
084d066
Take the parent password at the login screen too, as the kid
peterholko Sep 2, 2026
4014030
Put the account header back after the parent password screen
peterholko Sep 2, 2026
a6ebcde
Keep Passwordless Sudo and Sudoless Docker off a child install's menu
peterholko Sep 2, 2026
ea79991
Run the parent helper with seteuid and check both stacks in the guest
peterholko Sep 2, 2026
97a571f
Skip the full name and email prompts on a child install
peterholko Sep 2, 2026
87ce8fa
Hide adult apps on a child install and ship gcompris-qt
unicadesign Sep 4, 2026
28ad239
Restore upstream captive portal support
peterholko Sep 10, 2026
ea3f225
Preserve Omarchy path when parent commands elevate
peterholko Sep 10, 2026
76bb1f2
Serialize and atomically publish parent settings
peterholko Sep 10, 2026
62035a5
Merge branch 'omacom:quattro' into kids/child-profile
peterholko Sep 11, 2026
1b23dfb
Cache parent sudo validation during acceptance
peterholko Sep 11, 2026
faad83e
Fix parent command and policy test checks
peterholko Sep 11, 2026
56d2123
Isolate lock helper PAM regression fixtures
peterholko Sep 11, 2026
f2b092c
Name the first question's answers Myself, My child, and Another owner
jankeesvw Sep 12, 2026
8e30cd8
Merge pull request #2 from jankeesvw/computer-for-labels
peterholko Sep 12, 2026
3bc289f
Merge pull request #1 from unicadesign/kids/child-app-set
peterholko Sep 15, 2026
801db34
Merge quattro updates into child profile
peterholko Oct 9, 2026
c12ec77
Merge quattro updates into child profile
peterholko Oct 10, 2026
d4f0238
Keep the mise wrappers out of the config reset
peterholko Oct 10, 2026
71979bf
Run the parent-unlock test against a redirected copy of the lock helper
peterholko Oct 10, 2026
0a97de7
Hold one lock across a Wi-Fi setting and its polkit rule
peterholko Oct 10, 2026
6f05157
Merge quattro updates into child profile
peterholko Oct 10, 2026
2540f8f
Merge quattro into kids mode
omarchybot Oct 13, 2026
aac4705
Mask autovt@ alongside getty@ when closing the consoles
omarchybot Oct 14, 2026
9973e91
Merge quattro updates into child profile
peterholko Oct 28, 2026
8a14ac7
Keep Install and Remove on a child install's menu
peterholko Oct 28, 2026
27f1f21
Refuse a changed parent password once the staged LUKS key is retired
peterholko Oct 28, 2026
a545296
Report skipped child checks as skips, and fail a designated child run
peterholko Oct 28, 2026
30ef2a1
Count root's faillock failures on child installs only
peterholko Oct 28, 2026
438c9f5
Drop the Wi-Fi delegation from omarchy-parent
peterholko Oct 28, 2026
2714fdc
Remove every kid grant before the parent rule on removal
peterholko Nov 26, 2026
3dcf372
Delete the Wi-Fi rule older kids mode builds wrote
peterholko Nov 26, 2026
327cad8
Let the parent change their disk key on a Mac child install
peterholko Nov 26, 2026
1dbe28a
Keep the password-keyring lines out of a child's login stack
peterholko Nov 26, 2026
1b2c7ab
Keep Update > Channel's entries out of a child's menu search
peterholko Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/omarchy
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ GROUP_DESCRIPTIONS[notification]="Notification helpers"
GROUP_DESCRIPTIONS[mise]="Mise tool wrappers"
GROUP_DESCRIPTIONS[openclaw]="OpenClaw agent platform setup"
GROUP_DESCRIPTIONS[osd]="On-screen display status helpers"
GROUP_DESCRIPTIONS[parent]="Parental controls for child installs"
GROUP_DESCRIPTIONS[pkg]="Package management helpers"
GROUP_DESCRIPTIONS[plugin]="Omarchy shell plugin and bar widget management"
GROUP_DESCRIPTIONS[plymouth]="Plymouth boot theme management"
GROUP_DESCRIPTIONS[power]="Power supply detection"
GROUP_DESCRIPTIONS[profile]="Install profile detection"
GROUP_DESCRIPTIONS[powerprofiles]="Power profile management"
GROUP_DESCRIPTIONS[refresh]="Reset config to defaults"
GROUP_DESCRIPTIONS[reinstall]="Reinstall and reset workflows"
Expand Down
80 changes: 75 additions & 5 deletions bin/omarchy-apply-lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,87 @@ as_root() {

echo "Configuring lock screen password authentication..."

as_root tee /etc/pam.d/omarchy-lock-password >/dev/null <<'EOF'
#%PAM-1.0
auth required pam_faillock.so preauth silent deny=10 unlock_time=120
-auth [success=2 default=ignore] pam_systemd_home.so
auth [success=1 default=bad] pam_unix.so try_first_pass nullok
# On a child install the parent password opens the lock screen too, after the
# kid's own has been refused: omarchy-parent-unlock checks the typed password
# against root's through sudo. The jumps skip the failure line on either
# success; a wrong password falls through to it as before. The kid's password
# is tried first so a normal unlock never touches sudo or root's faillock
# tally. Decided here, inside the writer, so every rerun keeps it.
lock_password_stack() {
echo '#%PAM-1.0'
echo 'auth required pam_faillock.so preauth silent deny=10 unlock_time=120'
if omarchy-profile-child; then
echo '-auth [success=3 default=ignore] pam_systemd_home.so'
echo 'auth [success=2 default=ignore] pam_unix.so try_first_pass nullok'
echo 'auth [success=1 default=ignore] pam_exec.so quiet seteuid expose_authtok /usr/bin/omarchy-parent-unlock'
else
echo '-auth [success=2 default=ignore] pam_systemd_home.so'
echo 'auth [success=1 default=bad] pam_unix.so try_first_pass nullok'
fi
cat <<'EOF'
auth [default=die] pam_faillock.so authfail deny=10 unlock_time=120
auth optional pam_permit.so
auth required pam_env.so
auth required pam_faillock.so authsucc
account include system-local-login
EOF
}

lock_password_stack | as_root tee /etc/pam.d/omarchy-lock-password >/dev/null

# The login screen too, on a child install: SDDM's stack pulls its auth
# from system-login, which pulls pam_unix from system-auth; the child version
# spells that out with the parent helper after pam_unix, keeps the shells
# and nologin checks that system-login adds, and leaves every other line of
# the packaged file as it is (install/login/sddm.sh has already trimmed the
# keyring there). The packaged file is kept beside it as sddm.omarchy-orig,
# and a run outside the child profile puts it back.
sddm_child_auth() {
cat <<'EOF'
auth required pam_shells.so
auth requisite pam_nologin.so
auth required pam_faillock.so preauth silent deny=10 unlock_time=120
-auth [success=3 default=ignore] pam_systemd_home.so
auth [success=2 default=ignore] pam_unix.so try_first_pass nullok
auth [success=1 default=ignore] pam_exec.so quiet seteuid expose_authtok /usr/bin/omarchy-parent-unlock
auth [default=die] pam_faillock.so authfail deny=10 unlock_time=120
auth optional pam_permit.so
auth required pam_env.so
auth required pam_faillock.so authsucc
EOF
}

sddm_child_stack() {
local line
echo "#%PAM-1.0"
echo "# Omarchy kids mode: the parent password logs in as the kid too."
echo "# Written by omarchy-apply-lock from sddm.omarchy-orig; edit that file."
grep -v '^#%PAM-1.0' "$1" | while IFS= read -r line; do
if [[ $line =~ ^auth[[:space:]]+include[[:space:]]+system-login ]]; then
sddm_child_auth
else
printf '%s\n' "$line"
fi
done
}

# OMARCHY_PAM_DIR points the shell test at a scratch directory; the lock
# stacks above reach /etc/pam.d through as_root alone, these are also read.
sddm_pam="${OMARCHY_PAM_DIR:-/etc/pam.d}/sddm"
sddm_orig="${OMARCHY_PAM_DIR:-/etc/pam.d}/sddm.omarchy-orig"
if omarchy-profile-child; then
if [[ -f $sddm_pam ]]; then
echo "Configuring the login screen for the parent password..."
if [[ ! -f $sddm_orig ]]; then
as_root cp -p "$sddm_pam" "$sddm_orig"
fi
sddm_child_stack "$sddm_orig" | as_root tee "$sddm_pam" >/dev/null
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
fi
elif [[ -f $sddm_orig ]]; then
echo "Restoring the packaged login screen stack..."
as_root cp -p "$sddm_orig" "$sddm_pam"
as_root rm -f "$sddm_orig"
fi

# Install resume recovery alongside fingerprint PAM, so setup and upgrades
# cannot leave one configured without the other.
Expand Down
35 changes: 32 additions & 3 deletions bin/omarchy-apply-system
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# omarchy:summary=Apply Omarchy system setup in the installed target
# omarchy:group=apply
# omarchy:requires-sudo=true
# omarchy:examples=omarchy apply system --install-user dhh --first-install
# omarchy:examples=omarchy apply system --install-user dhh --first-install | omarchy apply system --install-user kid --first-install --profile child
# omarchy:hidden=true

set -euo pipefail

usage() {
cat <<USAGE
Usage: omarchy apply system --install-user USER [--first-install|--upgrade]
omarchy apply system --defer-provisioning --first-install
Usage: omarchy apply system --install-user USER [--first-install|--upgrade] [--profile PROFILE]
omarchy apply system --defer-provisioning --first-install [--profile PROFILE]

Runs root-owned Omarchy system setup. The ISO calls this in the target chroot
after packages are installed and the target user exists. It also calls
Expand All @@ -20,10 +20,16 @@ omarchy-apply-hardware, so hardware setup cannot be accidentally skipped.
--defer-provisioning runs without an install user: deferred-provisioning installs create the user at
first boot, so scripts that grant group memberships record them in
/var/lib/omarchy/provisioning/groups instead of calling usermod.

--profile records the install profile, default or child, as one word in
/etc/omarchy/profile, which omarchy-profile-child reads at runtime, and exports
it as OMARCHY_INSTALL_PROFILE for the setup leaves. Child is Omarchy's kids
mode, picked by the installer's "Who is this computer for?" question.
USAGE
}

install_user="${OMARCHY_INSTALL_USER:-}"
profile="${OMARCHY_INSTALL_PROFILE:-default}"
first_install=0
upgrade=0
defer_provisioning=0
Expand All @@ -38,6 +44,10 @@ while (($#)); do
defer_provisioning=1
shift
;;
--profile)
profile="${2:-}"
shift 2
;;
--first-install)
first_install=1
shift
Expand All @@ -58,6 +68,14 @@ while (($#)); do
esac
done

case $profile in
default|child) ;;
*)
echo "Error: --profile must be default or child" >&2
exit 1
;;
esac

if (( EUID != 0 )); then
echo "Error: omarchy-apply-system must run as root" >&2
exit 1
Expand All @@ -78,8 +96,19 @@ else
fi

export OMARCHY_INSTALL_USER="$install_user"
export OMARCHY_INSTALL_PROFILE="$profile"
export OMARCHY_FIRST_INSTALL="$first_install"
export OMARCHY_UPGRADE="$upgrade"

# The marker outlives this run: omarchy-profile-child reads it whenever a menu
# guard, a script, or first-boot provisioning needs to know, and it sits in
# /etc, so a factory reset's @factory clone keeps a child machine a child
# machine. Written even for the default profile, so "no marker" only ever
# means an install that predates profiles.
profile_file="${OMARCHY_PROFILE_FILE:-/etc/omarchy/profile}"
install -Dm644 /dev/null "$profile_file"
printf '%s\n' "$profile" >"$profile_file"

export OMARCHY_PATH="${OMARCHY_PATH:-/usr/share/omarchy}"
export OMARCHY_INSTALL="${OMARCHY_INSTALL:-$OMARCHY_PATH/install}"
export OMARCHY_INSTALL_LOG_FILE="${OMARCHY_INSTALL_LOG_FILE:-/var/log/omarchy-install.log}"
Expand Down
12 changes: 11 additions & 1 deletion bin/omarchy-menu-timezone
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
set -e

timezone=$(timedatectl list-timezones | omarchy-menu-select "$(omarchy-i18n timezone.setTitle)" -- --width 520 --maxheight 520) || exit 1
sudo timedatectl set-timezone "$timezone"

# The %wheel grant in etc/sudoers.d/omarchy-tzupdate makes this one click.
# Where it does not reach -- a child install, whose kid account is outside
# wheel, or an older omarchy-settings -- sudo has no terminal to ask on and
# would fail silently, so let timedated's own polkit action carry the prompt
# instead: on a child install that is the parent password.
if [[ -t 0 ]] || sudo -n -l -l /usr/bin/timedatectl set-timezone "$timezone" 2>/dev/null | grep -q '!authenticate'; then
sudo timedatectl set-timezone "$timezone"
else
timedatectl set-timezone "$timezone"
fi
omarchy-shell -q omarchy.clock refresh
omarchy-notification-send "$(omarchy-i18n timezone.changed "$timezone")"
Loading