git rebase

This commit is contained in:
Michael Kelly 2025-02-14 15:28:32 -08:00
parent fa59125c4e
commit a30269753d
8 changed files with 14 additions and 8 deletions

View File

@ -69,7 +69,7 @@
# Update nixbook configs
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook reset --hard
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook clean -fd
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook pull
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook pull --rebase
# Flatpak Updates
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.flatpak}/bin/flatpak update --noninteractive --assumeyes

View File

@ -52,7 +52,7 @@
set -eu
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook reset --hard
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook clean -fd
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook pull
${pkgs.coreutils-full}/bin/nice -n 19 ${pkgs.util-linux}/bin/ionice -c 3 ${pkgs.git}/bin/git -C /etc/nixbook pull --rebase
# Get the timestamp of the current generation
last_gen_time=$(${pkgs.nix}/bin/nix-env --list-generations --profile /nix/var/nix/profiles/system | ${pkgs.gawk}/bin/awk 'END {print $2, $3}')

View File

@ -4,7 +4,10 @@ read -p "Do you want to continue? (y/n): " answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
echo "Powerwashing NixBook..."
# Get latest nixbook code
sudo git -C /etc/nixbook pull
sudo git -C /etc/nixbook reset --hard
sudo git -C /etc/nixbook clean -fd
sudo git -C /etc/nixbook pull --rebase
# Erase data and set up home directory again
rm -rf ~/

View File

@ -5,7 +5,10 @@ read -p "Do you want to continue? (y/n): " answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
echo "Powerwashing NixBook Lite..."
# Get latest nixbook code
sudo git -C /etc/nixbook pull
sudo git -C /etc/nixbook reset --hard
sudo git -C /etc/nixbook clean -fd
sudo git -C /etc/nixbook pull --rebase
# Erase data and set up home directory again
rm -rf ~/

View File

@ -7,7 +7,7 @@ if [[ "$answer" =~ ^[Yy]$ ]]; then
# Download the latest nixbook changes
sudo git -C /etc/nixbook reset --hard
sudo git -C /etc/nixbook clean -fd
sudo git -C /etc/nixbook pull
sudo git -C /etc/nixbook pull --rebase
# Update the nixos nix-channel to be the same as config.system.autoUpgrade.channel in base.nix or base_lite.nix
AUTOUPDATE_CHANNEL="$(sudo nix-instantiate --eval '<nixpkgs/nixos>' -A config.system.autoUpgrade.channel | tr -d '"')"

View File

@ -7,7 +7,7 @@ if [[ "$answer" =~ ^[Yy]$ ]]; then
# Download the latest nixbook changes
sudo git -C /etc/nixbook reset --hard
sudo git -C /etc/nixbook clean -fd
sudo git -C /etc/nixbook pull
sudo git -C /etc/nixbook pull --rebase
# Update the nixos nix-channel to be the same as config.system.autoUpgrade.channel in base.nix or base_lite.nix
AUTOUPDATE_CHANNEL="$(sudo nix-instantiate --eval '<nixpkgs/nixos>' -A config.system.autoUpgrade.channel | tr -d '"')"

View File

@ -7,7 +7,7 @@ if [[ "$answer" =~ ^[Yy]$ ]]; then
# Download the latest nixbook changes
sudo git -C /etc/nixbook reset --hard
sudo git -C /etc/nixbook clean -fd
sudo git -C /etc/nixbook pull
sudo git -C /etc/nixbook pull --rebase
# Update the nixos nix-channel to be the same as config.system.autoUpgrade.channel in base.nix or base_lite.nix
AUTOUPDATE_CHANNEL="$(sudo nix-instantiate --eval '<nixpkgs/nixos>' -A config.system.autoUpgrade.channel | tr -d '"')"

View File

@ -7,7 +7,7 @@ if [[ "$answer" =~ ^[Yy]$ ]]; then
# Download the latest nixbook changes
sudo git -C /etc/nixbook reset --hard
sudo git -C /etc/nixbook clean -fd
sudo git -C /etc/nixbook pull
sudo git -C /etc/nixbook pull --rebase
# Update the nixos nix-channel to be the same as config.system.autoUpgrade.channel in base.nix or base_lite.nix
AUTOUPDATE_CHANNEL="$(sudo nix-instantiate --eval '<nixpkgs/nixos>' -A config.system.autoUpgrade.channel | tr -d '"')"