From 26bcbb7dd89401c178ffb20b6649850bc51b55f5 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Wed, 20 May 2026 14:58:18 -0400 Subject: [PATCH] Shrink fast-shutdown, gpg, increase-file-watchers, increase-lockout-limit to runtime-only ops Each script's static-file write moves to omarchy-settings. The scripts keep only the runtime side: reload systemd, restart dirmngr, sysctl --system, or (for lockout-limit) the PAM seds that have to stay scripted because /etc/pam.d/system-auth and /etc/pam.d/sddm-autologin are upstream-owned and need targeted line edits rather than a full-file override. faillock.conf's deny=10 (formerly inside increase-sudo-tries.sh sed) now rides through the etc-overrides dance in omarchy-settings. --- install/config/fast-shutdown.sh | 8 ++++---- install/config/gpg.sh | 6 ++---- install/config/increase-file-watchers.sh | 4 ++-- install/config/increase-lockout-limit.sh | 5 +++++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/install/config/fast-shutdown.sh b/install/config/fast-shutdown.sh index c7cc7827..8097b21f 100644 --- a/install/config/fast-shutdown.sh +++ b/install/config/fast-shutdown.sh @@ -1,5 +1,5 @@ -sudo mkdir -p /etc/systemd/system.conf.d -sudo cp "$OMARCHY_PATH/default/systemd/faster-shutdown.conf" /etc/systemd/system.conf.d/10-faster-shutdown.conf -sudo mkdir -p /etc/systemd/system/user@.service.d -sudo cp "$OMARCHY_PATH/default/systemd/user@.service.d/faster-shutdown.conf" /etc/systemd/system/user@.service.d/faster-shutdown.conf +# The two faster-shutdown drop-ins +# (etc/systemd/system.conf.d/10-faster-shutdown.conf, +# etc/systemd/system/user@.service.d/10-faster-shutdown.conf) +# ship via omarchy-settings. Reload systemd so the new drop-ins take effect. sudo systemctl daemon-reload diff --git a/install/config/gpg.sh b/install/config/gpg.sh index 7e209f65..d7031c18 100644 --- a/install/config/gpg.sh +++ b/install/config/gpg.sh @@ -1,6 +1,4 @@ -# Setup GPG configuration with multiple keyservers for better reliability -sudo mkdir -p /etc/gnupg -sudo cp ~/.local/share/omarchy/default/gpg/dirmngr.conf /etc/gnupg/ -sudo chmod 644 /etc/gnupg/dirmngr.conf +# etc/gnupg/dirmngr.conf ships via omarchy-settings. Restart dirmngr so it +# picks up the new keyserver list and timeout. sudo gpgconf --kill dirmngr || true sudo gpgconf --launch dirmngr || true diff --git a/install/config/increase-file-watchers.sh b/install/config/increase-file-watchers.sh index a6be761a..0b12d2dc 100644 --- a/install/config/increase-file-watchers.sh +++ b/install/config/increase-file-watchers.sh @@ -1,3 +1,3 @@ -# Increase inotify file watchers for VS Code, webpack, and other dev tools (default 8192 is too low) -echo "fs.inotify.max_user_watches=524288" | sudo tee /etc/sysctl.d/90-omarchy-file-watchers.conf >/dev/null +# etc/sysctl.d/90-omarchy-file-watchers.conf ships via omarchy-settings. +# Apply the new sysctl values immediately. sudo sysctl --system >/dev/null 2>&1 diff --git a/install/config/increase-lockout-limit.sh b/install/config/increase-lockout-limit.sh index 5932906f..4731497e 100644 --- a/install/config/increase-lockout-limit.sh +++ b/install/config/increase-lockout-limit.sh @@ -1,3 +1,8 @@ +# The faillock.conf side ships via the omarchy-settings etc-overrides +# (deny = 10). The two PAM file edits below remain a script because +# /etc/pam.d/system-auth and /etc/pam.d/sddm-autologin are upstream-owned +# and the changes are insertions, not full-file overrides. + # Increase lockout limit to 10 and decrease timeout to 2 minutes sudo sed -i 's|^\(auth\s\+required\s\+pam_faillock.so\)\s\+preauth.*$|\1 preauth silent deny=10 unlock_time=120|' "/etc/pam.d/system-auth" sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1 authfail deny=10 unlock_time=120|' "/etc/pam.d/system-auth"