refactor: add zsync and Zen browser tasks, update default applications and configurations
Some checks failed
Nix Format Check / check-format (push) Failing after 1m6s
Some checks failed
Nix Format Check / check-format (push) Failing after 1m6s
This commit is contained in:
@ -3,11 +3,10 @@ source $HOME/dotfiles/bin/helpers/functions.sh
|
||||
|
||||
# Define associative array with app_name => command mapping
|
||||
declare -A apps=(
|
||||
["spotify"]="flatpak run com.spotify.Client"
|
||||
["vesktop"]="vesktop"
|
||||
["bitwarden"]="bitwarden"
|
||||
["ktailctl"]="flatpak run org.fkoehler.KTailctl"
|
||||
["1password"]="1password"
|
||||
["ulauncher"]="ulauncher-wrapped --no-window-shadow --hide-window"
|
||||
["ulauncher"]="ulauncher --no-window-shadow --hide-window"
|
||||
)
|
||||
|
||||
# check if screen has any dead sessions
|
||||
|
@ -5,7 +5,9 @@ help() {
|
||||
printfe "%s\n" "green" "Usage: upgrade.sh [options]"
|
||||
printfe "%s\n" "green" "Options:"
|
||||
printfe "%s\n" "green" " --ha, -H Upgrade Home Manager packages."
|
||||
printfe "%s\n" "green" " --nix, -X Upgrade NixOS packages."
|
||||
printfe "%s\n" "green" " --ansible, -A Upgrade Ansible packages."
|
||||
printfe "%s\n" "green" " --ansible-verbose Upgrade Ansible packages with verbose output. (-vvv)"
|
||||
printfe "%s\n" "green" " --nix, -X Update Home Manager flake."
|
||||
printfe "%s\n" "green" " --full-speed, -F Upgrade packages and use all available cores for compilation. (Default: 8 cores)"
|
||||
printfe "%s\n" "green" " --help, -h Display this help message."
|
||||
exit 0
|
||||
@ -16,6 +18,9 @@ while [[ "$#" -gt 0 ]]; do
|
||||
--ha|-H) RUN_HA=true ;;
|
||||
--nix|-X) RUN_NIX=true ;;
|
||||
--ansible|-A) RUN_ANSIBLE=true ;;
|
||||
--ansible-verbose)
|
||||
RUN_ANSIBLE=true
|
||||
ANSIBLE_VERBOSE=true ;;
|
||||
--full-speed|-F) FULL_SPEED=true ;;
|
||||
--help|-h) help ;;
|
||||
*) echo "Unknown parameter passed: $1";
|
||||
@ -76,10 +81,10 @@ if [[ "$RUN_ANSIBLE" == true ]]; then
|
||||
fi
|
||||
|
||||
printfe "%s\n" "cyan" "Running Ansible playbook..."
|
||||
cd $HOME/dotfiles/config/ansible && ansible-playbook -i $HOME/dotfiles/config/ansible/inventory.ini $HOME/dotfiles/config/ansible/main.yml --extra-vars "hostname=$HOSTNAME" --extra-vars "ansible_user=$USER" --limit $HOSTNAME --ask-become-pass
|
||||
cd $HOME/dotfiles/config/ansible && ansible-playbook -i $HOME/dotfiles/config/ansible/inventory.ini $HOME/dotfiles/config/ansible/main.yml --extra-vars "hostname=$HOSTNAME" --extra-vars "ansible_user=$USER" --limit $HOSTNAME --ask-become-pass ${ANSIBLE_VERBOSE:+-vvv}
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
printfe "%s\n" "red" "Failed to upgrade Ansible packages."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user