feat: add topgrade

This commit is contained in:
Bastien Riviere 2024-06-03 19:46:13 +02:00
parent 2dd105e30d
commit 4a4b1b9044
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
6 changed files with 24 additions and 13 deletions

View file

@ -24,6 +24,10 @@ grep -v '^#' /tmp/packages | xargs rpm-ostree install
rpm-ostree override remove opensc
# Install topgrade
pip install --prefix=/usr topgrade
# Installed via flatpak
rpm-ostree override remove firefox firefox-langpacks
@ -34,7 +38,7 @@ systemctl enable incus.socket
systemctl enable podman.socket
systemctl enable tailscaled.service
systemctl enable -f --global flatpak-setup.service
systemctl enable -f --global azure-distrobox.service
systemctl enable -f --global azure-topgrade.service
systemctl enable azure-system-setup.service
systemctl enable azure-groups.service

View file

@ -1,11 +1,11 @@
[Unit]
Description=Update distrobox for current user
Description=Update everything for current user
Wants=network-online.target
After=network-online.service
[Service]
Type=simple
ExecStart=/usr/libexec/azure-distrobox
ExecStart=/usr/libexec/azure-topgrade
Restart=on-failure
RestartSec=30
StartLimitInterval=0

View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
if [ ! -f ~/.config/distrobox.ini ]; then
echo "No distrobox config at ~/.config/distrobox.ini, skipping"
exit 0
fi
notify-send "Azure Distrobox" "Updating distroboxes" -u NORMAL
distrobox assemble create --file ~/.config/distrobox.ini
notify-send "Azure Distrobox" "Finished updating distroboxes" -u NORMAL

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
notify-send "Azure" "Running topgrade" -u NORMAL
topgrade --config /usr/share/azure/topgrade.toml
notify-send "Azure" "topgrade finished" -u NORMAL

View file

@ -0,0 +1,9 @@
[misc]
no_self_update = true
disable = ["self_update", "toolbx", "containers", "helm", "nix"]
ignore_failures = ["distrobox", "flatpak", "brew_cask", "brew_formula", "node", "pip3", "home_manager", "firmware"]
assume_yes = true
no_retry = false
[linux]
rpm_ostree = true

View file

@ -83,6 +83,9 @@ fish
zsh
zoxide
# python / for topgrade
python3-pip
# classic dev tools
gcc
make