This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/scripts/shell/system-update-all.sh

15 lines
316 B
Bash
Raw Normal View History

NIXOS_CONFIGURATION="/etc/nixos"
HOME_MANAGER_CONFIGURATION="$HOME/.config/home-manager"
(
cd "$NIXOS_CONFIGURATION" || exit 1
git pull --ff --ff-only || exit 1
sudo nixos-rebuild switch
)
(
cd "$HOME_MANAGER_CONFIGURATION" || exit 1
git pull --ff --ff-only || exit 1
home-manager switch
)