mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Centralize service enabling
This commit is contained in:
@@ -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/docker.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/mimetypes.sh
|
run_logged $OMARCHY_INSTALL/config/mimetypes.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/localdb.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/set-wireless-regdom.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-fkeys.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/nvidia.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-bcm43xx.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-suspend-nvme.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.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
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
|
# Add user to docker group
|
||||||
sudo usermod -aG docker ${USER}
|
sudo usermod -aG docker ${USER}
|
||||||
sudo systemctl restart systemd-resolved
|
|
||||||
sudo systemctl enable docker
|
|
||||||
sudo systemctl daemon-reload
|
|
||||||
|
|||||||
27
install/config/enable-services.sh
Normal file
27
install/config/enable-services.sh
Normal 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
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Turn on bluetooth by default
|
|
||||||
chrootable_systemctl_enable bluetooth.service
|
|
||||||
@@ -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
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
chrootable_systemctl_enable cups.service
|
|
||||||
chrootable_systemctl_enable avahi-daemon.service
|
|
||||||
chrootable_systemctl_enable cups-browsed.service
|
|
||||||
Reference in New Issue
Block a user