Unofficial Hacker News companion — get notified on comment replies, and more.

NixOS 26.11 (opens external site)

301 points by lostmsu 4 hours ago nixos.org 124 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (1)

  1. Anything an agent is able to do, it will probably do eventually, without confirmation.

    For this, offline backup might not have been necessary, and not many people have 3hr old offline backups.

    `git fsck --unreachable`, although tedious, maybe could recover the commits with enough dedication, if gc hasn't run.

    Further measures to keep that from even being necessary:

    Is the filesystem btrfs or zfs? Snapshots are your friend (there are existing snap+replication solutions like btrbk or sanoid -- in this case, to be configured to take a series of snapshots without subsequent replication).

    Another potential mitigation is to run a master git repo with force-pushing disabled, and have the agent clone/pull from that. Joint use of a single local repo -- with fragile stashing on your part, and an agent also manipulating the repo without confirmation -- seems dicey.