Centralize service enabling

This commit is contained in:
Ryan Hughes
2025-11-10 17:45:51 -05:00
parent 8984affcbe
commit 4178547bbf
6 changed files with 31 additions and 18 deletions

View File

@@ -8,12 +8,8 @@ run_logged $OMARCHY_INSTALL/config/fix-powerprofilesctl-shebang.sh
run_logged $OMARCHY_INSTALL/config/docker.sh
run_logged $OMARCHY_INSTALL/config/mimetypes.sh
run_logged $OMARCHY_INSTALL/config/localdb.sh
run_logged $OMARCHY_INSTALL/config/hardware/network.sh
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/ignore-power-button.sh
run_logged $OMARCHY_INSTALL/config/hardware/nvidia.sh
run_logged $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
run_logged $OMARCHY_INSTALL/config/hardware/fix-bcm43xx.sh
@@ -21,3 +17,6 @@ run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-spi-keyboard.sh
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-suspend-nvme.sh
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh
# Enable all services at the end to minimize daemon reloads
run_logged $OMARCHY_INSTALL/config/enable-services.sh

View File

@@ -1,4 +1,2 @@
# Add user to docker group
sudo usermod -aG docker ${USER}
sudo systemctl restart systemd-resolved
sudo systemctl enable docker
sudo systemctl daemon-reload

View File

@@ -0,0 +1,27 @@
# Enable all Omarchy system services
# This is run at the end of configuration to minimize daemon reloads
# Note: sddm and ufw are enabled in their respective setup scripts (login/sddm.sh and first-run/firewall.sh)
# Networking
chrootable_systemctl_enable iwd.service
chrootable_systemctl_enable avahi-daemon.service
# Bluetooth
chrootable_systemctl_enable bluetooth.service
# Printing
chrootable_systemctl_enable cups.service
chrootable_systemctl_enable cups-browsed.service
# Docker
chrootable_systemctl_enable docker.service
# Prevent systemd-networkd-wait-online timeout on boot
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service
# Single daemon-reload at the end
sudo systemctl daemon-reload
# Restart systemd-resolved for Docker DNS configuration
sudo systemctl restart systemd-resolved

View File

@@ -1,2 +0,0 @@
# Turn on bluetooth by default
chrootable_systemctl_enable bluetooth.service

View File

@@ -1,6 +0,0 @@
# Ensure iwd service will be started
sudo systemctl enable iwd.service
# Prevent systemd-networkd-wait-online timeout on boot
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service

View File

@@ -1,3 +0,0 @@
chrootable_systemctl_enable cups.service
chrootable_systemctl_enable avahi-daemon.service
chrootable_systemctl_enable cups-browsed.service