From 2b749124efa5c714c1fe19423b179767b95c9287 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Wed, 20 May 2026 19:27:12 -0400 Subject: [PATCH] Delete install scripts whose job is now done by package files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each of these scripts only wrote a single /etc file (or copied config/bashrc into the user home). The corresponding files now ship from the omarchy-settings package — either directly into /etc (drop-ins the package fully owns) or via the /usr/share/omarchy/etc-overrides post_install dance (for upstream-owned paths). Deleted: - install/config/timezones.sh -> etc/sudoers.d/omarchy-tzupdate - install/config/sudoless-asdcontrol.sh -> etc/sudoers.d/omarchy-asdcontrol ($USER rewritten to %wheel) - install/config/increase-sudo-tries.sh -> etc/sudoers.d/omarchy-passwd-tries (faillock.conf side now in etc-overrides) - install/config/hardware/ignore-power-button.sh -> etc/systemd/logind.conf.d/10-ignore-power-button.conf (replaces sed-edit of logind.conf) - install/config/hardware/usb-autosuspend.sh -> etc/modprobe.d/omarchy-usb-autosuspend.conf - install/config/ssh-flakiness.sh -> etc/sysctl.d/99-omarchy-sysctl.conf - install/config/config.sh -> /etc/skel seeds ~/.config from config/**; ~/.bashrc seeded from etc-overrides - install/login/plymouth.sh -> theme files already shipped by omarchy-settings; etc/plymouth/plymouthd.conf handled via etc-overrides A separate migration tidies up the old paths on existing installs. all.sh entries updated to drop these scripts. --- install/config/all.sh | 7 ------- install/config/config.sh | 6 ------ install/config/hardware/ignore-power-button.sh | 2 -- install/config/hardware/usb-autosuspend.sh | 5 ----- install/config/increase-sudo-tries.sh | 6 ------ install/config/ssh-flakiness.sh | 2 -- install/config/sudoless-asdcontrol.sh | 3 --- install/config/timezones.sh | 5 ----- install/login/all.sh | 1 - install/login/plymouth.sh | 4 ---- 10 files changed, 41 deletions(-) delete mode 100644 install/config/config.sh delete mode 100644 install/config/hardware/ignore-power-button.sh delete mode 100644 install/config/hardware/usb-autosuspend.sh delete mode 100644 install/config/increase-sudo-tries.sh delete mode 100644 install/config/ssh-flakiness.sh delete mode 100644 install/config/sudoless-asdcontrol.sh delete mode 100644 install/config/timezones.sh delete mode 100644 install/login/plymouth.sh diff --git a/install/config/all.sh b/install/config/all.sh index 06620446..3f6592b5 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -1,14 +1,10 @@ -run_logged $OMARCHY_INSTALL/config/config.sh run_logged $OMARCHY_INSTALL/config/theme.sh run_logged $OMARCHY_INSTALL/config/branding.sh run_logged $OMARCHY_INSTALL/config/git.sh run_logged $OMARCHY_INSTALL/config/gpg.sh -run_logged $OMARCHY_INSTALL/config/timezones.sh -run_logged $OMARCHY_INSTALL/config/increase-sudo-tries.sh run_logged $OMARCHY_INSTALL/config/increase-lockout-limit.sh run_logged $OMARCHY_INSTALL/config/lockscreen-pam.sh run_logged $OMARCHY_INSTALL/config/sleep-lock.sh -run_logged $OMARCHY_INSTALL/config/ssh-flakiness.sh run_logged $OMARCHY_INSTALL/config/increase-file-watchers.sh run_logged $OMARCHY_INSTALL/config/increase-fd-limit.sh run_logged $OMARCHY_INSTALL/config/detect-keyboard-layout.sh @@ -23,7 +19,6 @@ run_logged $OMARCHY_INSTALL/config/nautilus-python.sh run_logged $OMARCHY_INSTALL/config/localdb.sh run_logged $OMARCHY_INSTALL/config/fast-shutdown.sh run_logged $OMARCHY_INSTALL/config/unmount-fuse.sh -run_logged $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh run_logged $OMARCHY_INSTALL/config/input-group.sh run_logged $OMARCHY_INSTALL/config/omarchy-ai-skill.sh run_logged $OMARCHY_INSTALL/config/pi.sh @@ -38,8 +33,6 @@ run_logged $OMARCHY_INSTALL/config/hardware/set-wireless-regdom.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh run_logged $OMARCHY_INSTALL/config/hardware/bluetooth.sh run_logged $OMARCHY_INSTALL/config/hardware/printer.sh -run_logged $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh -run_logged $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh run_logged $OMARCHY_INSTALL/config/hardware/nvidia.sh run_logged $OMARCHY_INSTALL/config/hardware/vulkan.sh diff --git a/install/config/config.sh b/install/config/config.sh deleted file mode 100644 index 62f1417b..00000000 --- a/install/config/config.sh +++ /dev/null @@ -1,6 +0,0 @@ -# Copy over Omarchy configs -mkdir -p ~/.config -cp -R ~/.local/share/omarchy/config/* ~/.config/ - -# Use default bashrc from Omarchy -cp ~/.local/share/omarchy/default/bashrc ~/.bashrc diff --git a/install/config/hardware/ignore-power-button.sh b/install/config/hardware/ignore-power-button.sh deleted file mode 100644 index 8e514f69..00000000 --- a/install/config/hardware/ignore-power-button.sh +++ /dev/null @@ -1,2 +0,0 @@ -# Disable shutting system down on power button to bind it to power menu afterwards -sudo sed -i 's/.*HandlePowerKey=.*/HandlePowerKey=ignore/' /etc/systemd/logind.conf diff --git a/install/config/hardware/usb-autosuspend.sh b/install/config/hardware/usb-autosuspend.sh deleted file mode 100644 index 91323846..00000000 --- a/install/config/hardware/usb-autosuspend.sh +++ /dev/null @@ -1,5 +0,0 @@ -# Disable USB autosuspend to prevent peripheral disconnection issues -if [[ ! -f /etc/modprobe.d/disable-usb-autosuspend.conf ]]; then - echo "options usbcore autosuspend=-1" | sudo tee /etc/modprobe.d/disable-usb-autosuspend.conf -fi - diff --git a/install/config/increase-sudo-tries.sh b/install/config/increase-sudo-tries.sh deleted file mode 100644 index 3f812ff9..00000000 --- a/install/config/increase-sudo-tries.sh +++ /dev/null @@ -1,6 +0,0 @@ -# Give the user 10 instead of 3 tries to fat finger their password before lockout -echo "Defaults passwd_tries=10" | sudo tee /etc/sudoers.d/passwd-tries -sudo chmod 440 /etc/sudoers.d/passwd-tries - -# Set for the lock screen too -sudo sed -i 's/^# *deny = .*/deny = 10/' /etc/security/faillock.conf diff --git a/install/config/ssh-flakiness.sh b/install/config/ssh-flakiness.sh deleted file mode 100644 index 906e68aa..00000000 --- a/install/config/ssh-flakiness.sh +++ /dev/null @@ -1,2 +0,0 @@ -# Solve common flakiness with SSH -echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf diff --git a/install/config/sudoless-asdcontrol.sh b/install/config/sudoless-asdcontrol.sh deleted file mode 100644 index 5ae03563..00000000 --- a/install/config/sudoless-asdcontrol.sh +++ /dev/null @@ -1,3 +0,0 @@ -# Setup sudo-less controls for controlling brightness on Apple Displays -echo "$USER ALL=(ALL) NOPASSWD: /usr/bin/asdcontrol" | sudo tee /etc/sudoers.d/asdcontrol -sudo chmod 440 /etc/sudoers.d/asdcontrol diff --git a/install/config/timezones.sh b/install/config/timezones.sh deleted file mode 100644 index 1dbda987..00000000 --- a/install/config/timezones.sh +++ /dev/null @@ -1,5 +0,0 @@ -# Ensure timezone can be updated without a password prompt -sudo tee /etc/sudoers.d/omarchy-tzupdate >/dev/null <