chore: rescue seven untracked scripts stranded in the main checkout - #285
Merged
Conversation
These sat untracked in /home/zach/workspace/devrc while the repo moved 77+
commits ahead. Untracked files are invisible to a flake build, so none of them
were reaching a `home-manager switch` — and they were one `checkout` away from
silent loss.
nix/system/ — three apply scripts, siblings of the five already tracked here
(apply-airvpn-host.sh, apply-travel-prep.sh, …), plus a paired backend module:
apply-mullvad-enable.sh, apply-nebula-443.sh, apply-remove-gtk-portal.sh
apply-file-manager-backend.sh + file-manager-backend.nix
scripts/session-analysis/ — two extractors alongside the existing
adoption-scan.py / initiative-scan.py / insights.py:
extract_genesis.py, extract_user_msgs.py
Checked before committing: gitleaks clean over all seven (18.75 KB), with the
scanner validated against a canary first — its default config allowlists the
canonical AKIAIOSFODNN7EXAMPLE fixture, so an unvalidated "no leaks found" here
would have meant nothing. The only secret-shaped match is a privateKeyFile PATH
("/etc/nixos/mullvad-wg.key"), not key material. `bash -n`, `py_compile` and
`nix-instantiate --parse` all pass. Modes match convention (apply-*.sh 755).
NOT included, deliberately:
- nix/pkgs/tools/screenarc.nix and its import in nix/pkgs/tools/default.nix —
the import line is COMMENTED OUT, i.e. parked on purpose. Left as-is.
- the uncommitted .npmrc deletion and .serena/project.yml churn — decisions for
the operator, not work at risk of loss.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seven scripts had been sitting untracked in
/home/zach/workspace/devrcwhile the repo moved 77+ commits ahead of that checkout. Untracked files are invisible to a flake build, so none of them were reaching ahome-manager switch— and they were one routinecheckoutaway from silent loss.What's here
nix/system/— three apply scripts, siblings of the five already tracked in that directory (apply-airvpn-host.sh,apply-travel-prep.sh,apply-dns-travel.sh, …), plus a paired backend module:apply-mullvad-enable.shapply-nebula-443.shapply-remove-gtk-portal.shapply-file-manager-backend.sh+file-manager-backend.nixscripts/session-analysis/— two extractors alongside the existingadoption-scan.py/initiative-scan.py/insights.py:extract_genesis.pyextract_user_msgs.pyChecks run before committing
AKIAIOSFODNN7EXAMPLEfixture, so my first negative control came back "no leaks found" on a file that was nothing but an AWS key pair. A realistic canary producedleaks found: 2, which is what makes the clean result on the real files meaningful. An unvalidated green here would have been worthless.privateKeyFilepath ("/etc/nixos/mullvad-wg.key"), not key material.bash -non all four shell scripts,py_compileon both Python files,nix-instantiate --parseon the nix module — all pass.apply-*.shat 755; the Python files at 644, matchingadoption-scan.py/insights.py).Deliberately NOT included
nix/pkgs/tools/screenarc.nixand its import innix/pkgs/tools/default.nix— the import line is commented out (#++ (import ./screenarc.nix …)), i.e. parked on purpose. Left exactly as-is rather than guessing it was meant to ship..npmrcdeletion (droppingprefix = $HOME/.npm-packages) and the.serena/project.ymlchurn — operator decisions, not work at risk of loss.Context
Found while triaging the main checkout's dirty tree ahead of a
home-manager switch. Two other dirty files there turned out to be stale March orphans —scripts/tmux-task-hook.shandscripts/tmux-task-resume.shwere byte-identical to their state atf69e583(2026-03-24), so committing them would have reverted four months of work and reinstated atmux rename-windowcall a later commit deliberately removed. Those were restored from HEAD, not carried here. Dirty ≠ WIP.