From b7d95a4c9b4dccb8aabee9235a444297c7d15ef3 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Wed, 27 Mar 2024 20:29:07 +0000 Subject: [PATCH] Add fedora support to the update command --- home.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home.nix b/home.nix index 1ec409c8..13e60533 100644 --- a/home.nix +++ b/home.nix @@ -66,6 +66,11 @@ paccache -rk1 fi sudo journalctl --vacuum-time=7d + elif [ "$(grep -Ei 'fedora' /etc/*release)" ]; then + echo "Updating Fedora..." + sudo dnf upgrade --refresh + sudo dnf autoremove + sudo journalctl --vacuum-time=7d else echo "Unknown distro, skipping system update." fi