Regenerated

This commit is contained in:
2026-04-29 11:54:26 +02:00
parent 5165e9b7df
commit 6c7cf81efe
5 changed files with 784 additions and 420 deletions
+42
View File
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
set -uo pipefail
emit() { echo "$1"; }
step() {
echo "STEP:$1:$2"
}
ok() {
echo "OK:$1"
}
fail() {
echo "FAIL:$1"
}
REPO="/home/$USER/Repos/nixos/Droidnix"
HOSTNAME="$(hostname)"
cd "$REPO" || exit 1
step 1 "Fixing ownership"
sudo chown -R "$USER":"wheel" "$REPO" || fail "ownership"
ok 1
step 2 "Updating flake"
nix flake update || fail "flake"
ok 2
step 3 "Rebuilding system"
sudo nixos-rebuild switch --flake ".#$HOSTNAME" || fail "rebuild"
hyprctl reload
ok 3
step 4 "Flatpak cleanup"
flatpak uninstall --unused -y
flatpak update --appstream -y
flatpak update -y || fail "flatpak"
ok 4
emit "DONE"