diff --git a/bin/omarchy-cmd-first-run b/bin/omarchy-cmd-first-run index 830bef54..a1734cfb 100755 --- a/bin/omarchy-cmd-first-run +++ b/bin/omarchy-cmd-first-run @@ -15,6 +15,7 @@ if [[ -f $FIRST_RUN_MODE ]]; then bash "$OMARCHY_PATH/install/first-run/dns-resolver.sh" bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh" bash "$OMARCHY_PATH/install/first-run/elephant.sh" + bash "$OMARCHY_PATH/install/first-run/powerprofilesctl-rules.sh" sudo rm -f /etc/sudoers.d/first-run bash "$OMARCHY_PATH/install/first-run/welcome.sh" diff --git a/install/config/all.sh b/install/config/all.sh index 79383094..37554d42 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -24,7 +24,6 @@ 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/kernel-modules-hook.sh -run_logged $OMARCHY_INSTALL/config/powerprofilesctl-rules.sh run_logged $OMARCHY_INSTALL/config/wifi-powersave-rules.sh run_logged $OMARCHY_INSTALL/config/plocate-ac-only.sh diff --git a/install/config/powerprofilesctl-rules.sh b/install/first-run/powerprofilesctl-rules.sh similarity index 100% rename from install/config/powerprofilesctl-rules.sh rename to install/first-run/powerprofilesctl-rules.sh diff --git a/install/preflight/first-run-mode.sh b/install/preflight/first-run-mode.sh index 536058cc..f56f071b 100644 --- a/install/preflight/first-run-mode.sh +++ b/install/preflight/first-run-mode.sh @@ -10,6 +10,8 @@ $USER ALL=(ALL) NOPASSWD: /usr/bin/systemctl $USER ALL=(ALL) NOPASSWD: /usr/bin/ufw $USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker $USER ALL=(ALL) NOPASSWD: /usr/bin/gtk-update-icon-cache +$USER ALL=(ALL) NOPASSWD: /usr/bin/tee /etc/udev/rules.d/* +$USER ALL=(ALL) NOPASSWD: /usr/bin/udevadm $USER ALL=(ALL) NOPASSWD: SYMLINK_RESOLVED $USER ALL=(ALL) NOPASSWD: FIRST_RUN_CLEANUP EOF diff --git a/migrations/1769566732.sh b/migrations/1769566732.sh index f2df93c0..1a5256ea 100644 --- a/migrations/1769566732.sh +++ b/migrations/1769566732.sh @@ -1,3 +1,3 @@ echo "Set power profile based on source switching (AC or Battery)" -source $OMARCHY_PATH/install/config/powerprofilesctl-rules.sh +source $OMARCHY_PATH/install/first-run/powerprofilesctl-rules.sh