Autocommit for atlas generation 7 kernel version 6.18.5 at 13:40:26 2026-01-16
This commit is contained in:
parent
d8e718de8c
commit
5f21830b30
1 changed files with 1 additions and 3 deletions
|
|
@ -3,14 +3,12 @@ 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"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue