atlas generation 7 kernel version 6.18.5 at 13:40:26 2026-01-16 rebuilding

This commit is contained in:
morganmayday 2026-01-16 13:44:10 -08:00
parent 7976b93145
commit 313d177d3d

View file

@ -3,19 +3,17 @@ cd $DOTFILES_DIR
git config core.pager cat
echo "Rebuilding..."
current=$(nixos-rebuild list-generations | grep True | awk '{print $4,"generation",$1,"kernel version",$5,"at",$3,$2}')
git diff HEAD --minimal
if [[ $* =~ u ]]; then
rm $DOTFILES_DIR/flake.lock
nix-channel --update
nix flake update
fi
git add .
git commit -am "$current rebuilding"
sudo nixos-rebuild switch --impure --flake $DOTFILES_DIR#$HOSTNAME # &>nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1)
notify-send -e "NixOS Rebuilt OK!" --icon=software-update-available
git add . && git diff HEAD --minimal && git commit -am "$current rebuilding"
sudo nixos-rebuild switch --impure --flake $DOTFILES_DIR#$HOSTNAME &> nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1) && notify-send -e "NixOS Rebuilt OK!" --icon=software-update-available
if [[ $* =~ p ]]; then
sync-dotfiles
fi
if [[ $* =~ r ]]; then
reboot
notify-send -e "NixOS Rebuild complete, rebooting in 30" && sleep 30
reboot
fi