From c8e80ce5c4d9fa12bee61d2653d7d9e471686b13 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 10 Mar 2024 18:54:41 -0700 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=20build:=20Install=20topgrade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/topgrade.d/00-misc.toml | 68 +++++++++++++++++++++++++++++ .config/topgrade.d/01-commands.toml | 14 ++++++ .config/topgrade.d/10-brew.toml | 19 ++++++++ .config/topgrade.d/10-composer.toml | 2 + .config/topgrade.d/10-firmware.toml | 3 ++ .config/topgrade.d/10-git.toml | 15 +++++++ .config/topgrade.d/10-linux.toml | 43 ++++++++++++++++++ .config/topgrade.d/10-npm.toml | 3 ++ 8 files changed, 167 insertions(+) create mode 100644 .config/topgrade.d/00-misc.toml create mode 100644 .config/topgrade.d/01-commands.toml create mode 100644 .config/topgrade.d/10-brew.toml create mode 100644 .config/topgrade.d/10-composer.toml create mode 100644 .config/topgrade.d/10-firmware.toml create mode 100644 .config/topgrade.d/10-git.toml create mode 100644 .config/topgrade.d/10-linux.toml create mode 100644 .config/topgrade.d/10-npm.toml diff --git a/.config/topgrade.d/00-misc.toml b/.config/topgrade.d/00-misc.toml new file mode 100644 index 0000000..263e024 --- /dev/null +++ b/.config/topgrade.d/00-misc.toml @@ -0,0 +1,68 @@ +[misc] +# Run `sudo -v` to cache credentials at the start of the run +# This avoids a blocking password prompt in the middle of an unattended run +# (default: false) +# pre_sudo = false + +# Sudo command to be used +# sudo_command = "sudo" + +# Disable specific steps - same options as the command line flag +disable = ["pnpm"] + +# Ignore failures for these steps +# ignore_failures = ["powershell"] + +# List of remote machines with Topgrade installed on them +# remote_topgrades = ["toothless", "pi", "parnas"] + +# Path to Topgrade executable on remote machines +# remote_topgrade_path = ".cargo/bin/topgrade" + +# Arguments to pass to SSH when upgrading remote systems +# ssh_arguments = "-o ConnectTimeout=2" + +# Arguments to pass tmux when pulling Repositories +# tmux_arguments = "-S /var/tmux.sock" + +# Do not set the terminal title (default: true) +# set_title = true + +# Display the time in step titles (default: true) +# display_time = true + +# Don't ask for confirmations (no default value) +# assume_yes = true + +# Do not ask to retry failed steps (default: false) +# no_retry = true + +# Run inside tmux (default: false) +# run_in_tmux = true + +# Cleanup temporary or old files (default: false) +cleanup = true + +# Send a notification for every step (default: false) +# notify_each_step = false + +# Skip sending a notification at the end of a run (default: false) +# skip_notify = true + +# The Bash-it branch to update (default: "stable") +# bashit_branch = "stable" + +# Run specific steps - same options as the command line flag +# only = ["system", "emacs"] + +# Whether to self update +# +# this will be ignored if the binary is built without self update support +# +# available also via setting the environment variable TOPGRADE_NO_SELF_UPGRADE) +# no_self_update = true + +# Extra tracing filter directives +# These are prepended to the `--log-filter` argument +# See: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives +# log_filters = ["topgrade::command=debug", "warn"] diff --git a/.config/topgrade.d/01-commands.toml b/.config/topgrade.d/01-commands.toml new file mode 100644 index 0000000..15a1ece --- /dev/null +++ b/.config/topgrade.d/01-commands.toml @@ -0,0 +1,14 @@ +# Commands to run before anything +[pre_commands] +# "Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak" + + +# Commands to run after anything +[post_commands] +# "Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak" + + +# Custom commands +[commands] +"Fish Shell Completions" = "fish_update_completions" +"Update dotfiles dependencies" = "dotfiles submodule update --init --recursive" diff --git a/.config/topgrade.d/10-brew.toml b/.config/topgrade.d/10-brew.toml new file mode 100644 index 0000000..a6e54a4 --- /dev/null +++ b/.config/topgrade.d/10-brew.toml @@ -0,0 +1,19 @@ +[brew] +# For the BrewCask step +# If `Repo Cask Upgrade` exists, then use the `-a` option. +# Otherwise, use the `--greedy` option. +# greedy_cask = true + +# For the BrewCask step +# If `Repo Cask Upgrade` does not exist, then use the `--greedy_latest` optoin. +# NOTE: the above entry `greedy_cask` contains this entry, though you can enable +# both of them, they won't clash with each other. +# greedy_latest = true + +# For the BrewFormula step +# Execute `brew autoremove` after the step. +autoremove = true + +# For the BrewFormula step +# Upgrade formulae built from the HEAD branch; `brew upgrade --fetch-HEAD` +# fetch_head = true diff --git a/.config/topgrade.d/10-composer.toml b/.config/topgrade.d/10-composer.toml new file mode 100644 index 0000000..ab92cec --- /dev/null +++ b/.config/topgrade.d/10-composer.toml @@ -0,0 +1,2 @@ +[composer] +# self_update = true diff --git a/.config/topgrade.d/10-firmware.toml b/.config/topgrade.d/10-firmware.toml new file mode 100644 index 0000000..d96eaba --- /dev/null +++ b/.config/topgrade.d/10-firmware.toml @@ -0,0 +1,3 @@ +[firmware] +# Offer to update firmware; if false just check for and display available updates +# upgrade = true diff --git a/.config/topgrade.d/10-git.toml b/.config/topgrade.d/10-git.toml new file mode 100644 index 0000000..b986166 --- /dev/null +++ b/.config/topgrade.d/10-git.toml @@ -0,0 +1,15 @@ +[git] +# How many repos to pull at max in parallel +# max_concurrency = 5 + +# Additional git repositories to pull +# repos = [ +# "~/src/*/", +# "~/.config/something" +# ] + +# Don't pull the predefined git repos +# pull_predefined = false + +# Arguments to pass Git when pulling Repositories +# arguments = "--rebase --autostash" diff --git a/.config/topgrade.d/10-linux.toml b/.config/topgrade.d/10-linux.toml new file mode 100644 index 0000000..7f8a97f --- /dev/null +++ b/.config/topgrade.d/10-linux.toml @@ -0,0 +1,43 @@ +[linux] +# Arch Package Manager to use. +# Allowed values: +# autodetect, aura, garuda_update, pacman, pamac, paru, pikaur, trizen, yay +arch_package_manager = "yay" + +# Arguments to pass yay (or paru) when updating packages +# yay_arguments = "--nodevel" + +# Arguments to pass dnf when updating packages +# dnf_arguments = "--refresh" + +# aura_aur_arguments = "-kx" + +# aura_pacman_arguments = "" +# garuda_update_arguments = "" + +# show_arch_news = true + +# trizen_arguments = "--devel" + +# pikaur_arguments = "" + +# pamac_arguments = "--no-devel" + +# enable_tlmgr = true + +# emerge_sync_flags = "-q" + +# emerge_update_flags = "-uDNa --with-bdeps=y world" + +# redhat_distro_sync = false + +# suse_dup = false + +# rpm_ostree = false + +# nix_arguments = "--flake" + +# nix_env_arguments = "--prebuilt-only" + +# Extra Home Manager arguments +# home_manager_arguments = ["--flake", "file"] diff --git a/.config/topgrade.d/10-npm.toml b/.config/topgrade.d/10-npm.toml new file mode 100644 index 0000000..f30d57c --- /dev/null +++ b/.config/topgrade.d/10-npm.toml @@ -0,0 +1,3 @@ +[npm] +# Use sudo if the NPM directory isn't owned by the current user +# use_sudo = true