mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
chore: state before home-manager update
This commit is contained in:
@@ -107,99 +107,99 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# update = {
|
update = {
|
||||||
# body =
|
body =
|
||||||
# if userConfig.isNixOS then
|
if userConfig.isNixOS then
|
||||||
# # fish
|
# fish
|
||||||
# ''
|
''
|
||||||
# echo "=== System packages update ==="
|
echo "=== System packages update ==="
|
||||||
# pushd /etc/nixos
|
pushd /etc/nixos
|
||||||
|
|
||||||
# if git pull
|
if git pull
|
||||||
# git add -A
|
git add -A
|
||||||
# git commit --allow-empty -m "chore: state before system update"
|
git commit --allow-empty -m "chore: state before system update"
|
||||||
#
|
|
||||||
# nix flake update
|
nix flake update
|
||||||
#
|
|
||||||
# if test $status -eq 0
|
if test $status -eq 0
|
||||||
# git add ./flake.lock
|
git add ./flake.lock
|
||||||
# git commit --allow-empty -m "chore: update system flake.lock"
|
git commit --allow-empty -m "chore: update system flake.lock"
|
||||||
# reload_system
|
reload_system
|
||||||
# git push
|
git push
|
||||||
# else
|
else
|
||||||
# echo "Error while updating system flake!"
|
echo "Error while updating system flake!"
|
||||||
# end
|
end
|
||||||
# else
|
else
|
||||||
# echo "Error: 'git pull' failed in /etc/nixos. Skipping system update."
|
echo "Error: 'git pull' failed in /etc/nixos. Skipping system update."
|
||||||
# end
|
end
|
||||||
|
|
||||||
# popd
|
popd
|
||||||
|
|
||||||
# echo "=== User packages update ==="
|
echo "=== User packages update ==="
|
||||||
# pushd $HOME/.config/home-manager
|
pushd $HOME/.config/home-manager
|
||||||
|
|
||||||
# if git pull
|
if git pull
|
||||||
# git add -A
|
git add -A
|
||||||
# git commit --allow-empty -m "chore: state before home-manager update"
|
git commit --allow-empty -m "chore: state before home-manager update"
|
||||||
#
|
|
||||||
# nix flake update
|
nix flake update
|
||||||
#
|
|
||||||
# if test $status -eq 0
|
if test $status -eq 0
|
||||||
# git add ./flake.lock
|
git add ./flake.lock
|
||||||
# git commit --allow-empty -m "chore: update home flake.lock"
|
git commit --allow-empty -m "chore: update home flake.lock"
|
||||||
# git push
|
git push
|
||||||
# reload_dotfiles
|
reload_dotfiles
|
||||||
# else
|
else
|
||||||
# echo "Error while updating home flake!"
|
echo "Error while updating home flake!"
|
||||||
# end
|
end
|
||||||
# else
|
else
|
||||||
# echo "Error: 'git pull' failed in home-manager. Skipping user update."
|
echo "Error: 'git pull' failed in home-manager. Skipping user update."
|
||||||
# end
|
end
|
||||||
|
|
||||||
# popd
|
popd
|
||||||
|
|
||||||
# if type -q flatpak
|
if type -q flatpak
|
||||||
# echo "=== Flatpak update ==="
|
echo "=== Flatpak update ==="
|
||||||
# flatpak update --noninteractive
|
flatpak update --noninteractive
|
||||||
#
|
|
||||||
# echo "=== Flatpak remove unused ==="
|
echo "=== Flatpak remove unused ==="
|
||||||
# flatpak uninstall --unused --noninteractive
|
flatpak uninstall --unused --noninteractive
|
||||||
# end
|
end
|
||||||
# ''
|
''
|
||||||
# else
|
else
|
||||||
# # fish
|
# fish
|
||||||
# ''
|
''
|
||||||
# echo "===System update==="
|
echo "===System update==="
|
||||||
|
|
||||||
# if not type -q yay
|
if not type -q yay
|
||||||
# echo "Yay not found… Please consider installing it!"
|
echo "Yay not found… Please consider installing it!"
|
||||||
# else
|
else
|
||||||
# yay
|
yay
|
||||||
# end
|
end
|
||||||
|
|
||||||
# if type -q pacman
|
if type -q pacman
|
||||||
# echo "===Remove orphans==="
|
echo "===Remove orphans==="
|
||||||
# set orphans (pacman -Qtdq)
|
set orphans (pacman -Qtdq)
|
||||||
# if test (count $orphans) -gt 0
|
if test (count $orphans) -gt 0
|
||||||
# sudo pacman -Rns $orphans
|
sudo pacman -Rns $orphans
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
|
|
||||||
# if type -q flatpak
|
if type -q flatpak
|
||||||
# echo "===Flatpak update==="
|
echo "===Flatpak update==="
|
||||||
# flatpak update --noninteractive
|
flatpak update --noninteractive
|
||||||
# echo "===Flatpak remove unused==="
|
echo "===Flatpak remove unused==="
|
||||||
# flatpak uninstall --unused
|
flatpak uninstall --unused
|
||||||
# end
|
end
|
||||||
|
|
||||||
# if type -q nix-channel
|
if type -q nix-channel
|
||||||
# echo "===Nix update==="
|
echo "===Nix update==="
|
||||||
# nix-channel --update
|
nix-channel --update
|
||||||
# echo "===Nix garbage collection==="
|
echo "===Nix garbage collection==="
|
||||||
# home-manager expire-generations "-7 days"
|
home-manager expire-generations "-7 days"
|
||||||
# end
|
end
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
blog_build_and_push = {
|
blog_build_and_push = {
|
||||||
body =
|
body =
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
ls = "eza --long --icons --group-directories-first --git";
|
ls = "eza --long --icons --group-directories-first --git";
|
||||||
lst = "eza --long --icons --color --git --tree";
|
lst = "eza --long --icons --color --git --tree";
|
||||||
rm = "trash";
|
rm = "trash";
|
||||||
update = "topgrade";
|
# update = "topgrade";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user