diff --git a/CLAUDE.md b/CLAUDE.md index 2d5441dae2..cf573a8b9d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -86,9 +86,10 @@ outputs = inputs: lib.merge [ `neededForBoot` patch (`patches/nixpkgs/neededforboot-nixos-unstable.patch`) that only applies cleanly to the unstable tree — don't re-follow individual inputs back to `nixpkgs-25` without checking that patch still applies. -- Root-level single-letter/word symlinks (`rebuild`, `auth`, `nvim`, `n`, `v`, `format-nix`, ...) +- Root-level single-letter/word symlinks (`rebuild`, `auth`, `nvim`, `s`, `format-nix`, ...) are convenience aliases into `lib/*.sh`; `lib/` here is shell scripts, distinct from the Nix - `lib/default.nix` DSL described above. + `lib/default.nix` DSL described above. Prefix stubs (partial command names) were removed in + #12668; see "Root symlinks" in the root `README.md` before adding a new one. ## Other areas diff --git a/README.md b/README.md index 3d5c30e138..01b8922f6f 100755 --- a/README.md +++ b/README.md @@ -6,6 +6,17 @@ Hello! - [`CONTRIBUTING.md`](CONTRIBUTING.md): how a change lands in this repository. - [Documentation catalog](doc/README.md): every dated record and topic, in one map. +## Root symlinks + +The repo root carries a small set of convenience symlinks into `lib/`, `doc/` +and `pkgs/`. The rebuild entry points are `./rebuild`, `./rebuild-simple` and +`./rebuild-offline`; `./s` is the simple rebuild the `switch` recipe in +`root.just` runs. Prefix stubs — partial command names such as `./reb` or +`./offl`, kept only for tab completion — were removed in #12668, because a +mistyped one-letter command at the root could start a full NixOS rebuild with +no confirmation. Do not add a new root symlink without a reason: record it +here or in the PR that adds the link. + ## Contributing Information By submitting patches to this project you agree to allow them to be redistributed under the project's license, diff --git a/a b/a deleted file mode 120000 index 0df19e3d37..0000000000 --- a/a +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/au b/au deleted file mode 120000 index 0df19e3d37..0000000000 --- a/au +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/aut b/aut deleted file mode 120000 index 0df19e3d37..0000000000 --- a/aut +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/f b/f deleted file mode 120000 index 0df19e3d37..0000000000 --- a/f +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/fu b/fu deleted file mode 120000 index 0df19e3d37..0000000000 --- a/fu +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/ful b/ful deleted file mode 120000 index 0df19e3d37..0000000000 --- a/ful +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/n b/n deleted file mode 120000 index b5ebec88c5..0000000000 --- a/n +++ /dev/null @@ -1 +0,0 @@ -lib/nvim.sh \ No newline at end of file diff --git a/nv b/nv deleted file mode 120000 index b5ebec88c5..0000000000 --- a/nv +++ /dev/null @@ -1 +0,0 @@ -lib/nvim.sh \ No newline at end of file diff --git a/nvi b/nvi deleted file mode 120000 index b5ebec88c5..0000000000 --- a/nvi +++ /dev/null @@ -1 +0,0 @@ -lib/nvim.sh \ No newline at end of file diff --git a/o b/o deleted file mode 120000 index 31a0a3ff8f..0000000000 --- a/o +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-offline.sh \ No newline at end of file diff --git a/of b/of deleted file mode 120000 index 31a0a3ff8f..0000000000 --- a/of +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-offline.sh \ No newline at end of file diff --git a/off b/off deleted file mode 120000 index 31a0a3ff8f..0000000000 --- a/off +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-offline.sh \ No newline at end of file diff --git a/offl b/offl deleted file mode 120000 index 31a0a3ff8f..0000000000 --- a/offl +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-offline.sh \ No newline at end of file diff --git a/offli b/offli deleted file mode 120000 index 31a0a3ff8f..0000000000 --- a/offli +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-offline.sh \ No newline at end of file diff --git a/offlin b/offlin deleted file mode 120000 index 31a0a3ff8f..0000000000 --- a/offlin +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-offline.sh \ No newline at end of file diff --git a/r b/r deleted file mode 120000 index 0df19e3d37..0000000000 --- a/r +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/re b/re deleted file mode 120000 index 0df19e3d37..0000000000 --- a/re +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/reb b/reb deleted file mode 120000 index 0df19e3d37..0000000000 --- a/reb +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/rebu b/rebu deleted file mode 120000 index 0df19e3d37..0000000000 --- a/rebu +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/rebui b/rebui deleted file mode 120000 index 0df19e3d37..0000000000 --- a/rebui +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/rebuil b/rebuil deleted file mode 120000 index 0df19e3d37..0000000000 --- a/rebuil +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-full.sh \ No newline at end of file diff --git a/si b/si deleted file mode 120000 index 186c14210a..0000000000 --- a/si +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-simple.sh \ No newline at end of file diff --git a/sim b/sim deleted file mode 120000 index 186c14210a..0000000000 --- a/sim +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-simple.sh \ No newline at end of file diff --git a/simp b/simp deleted file mode 120000 index 186c14210a..0000000000 --- a/simp +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-simple.sh \ No newline at end of file diff --git a/simpl b/simpl deleted file mode 120000 index 186c14210a..0000000000 --- a/simpl +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-simple.sh \ No newline at end of file diff --git a/ss b/ss deleted file mode 120000 index 880434b663..0000000000 --- a/ss +++ /dev/null @@ -1 +0,0 @@ -./lib/auth-rebuild-simple-script.sh \ No newline at end of file diff --git a/v b/v deleted file mode 120000 index b5ebec88c5..0000000000 --- a/v +++ /dev/null @@ -1 +0,0 @@ -lib/nvim.sh \ No newline at end of file diff --git a/vi b/vi deleted file mode 120000 index b5ebec88c5..0000000000 --- a/vi +++ /dev/null @@ -1 +0,0 @@ -lib/nvim.sh \ No newline at end of file