Skip to content

Commit d0a4458

Browse files
Remove migrated Config Bible code and support app backup registrations
1 parent b078c39 commit d0a4458

19 files changed

Lines changed: 59 additions & 1314 deletions

‎README.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ GitHub Actions runs the same build check on pushes and pull requests.
128128
| [Commander Toolbox](https://github.com/Commanderx-code/commander-toolbox) | Linux setup menus and individual dotfiles installers. |
129129
| [Config Bible](https://github.com/Commanderx-code/config-bible) | Workstation handbook with web and desktop viewers. |
130130

131-
The Config Bible source lives in its own repository; its local path is configured
132-
in `machine.json`. The full configuration and maintenance reference for these
133-
dotfiles lives in [STRUCTURE.md](STRUCTURE.md).
131+
Config Bible owns and installs its own commands, desktop launcher, and optional
132+
Home Manager module. Follow its repository README for installation. The full
133+
configuration and maintenance reference for these dotfiles lives in
134+
[STRUCTURE.md](STRUCTURE.md).
134135

135136
## Toolbox integration
136137

‎STRUCTURE.md‎

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configuration ownership and maintenance
22

33
`home-manager/machine.json` is the shared source for the username, home directory,
4-
architecture, dotfiles and Config Bible paths, backup mount/repository, and KWallet
4+
architecture, dotfiles path, backup mount/repository, and KWallet
55
entry names. It contains identifiers, never the Restic password. Edit it before
66
building on another host. Home Manager reads it at evaluation time and installs
77
it as `~/.config/dotfiles/machine.json`; operational scripts read the same JSON via
@@ -33,10 +33,10 @@ prerequisites described in [RECOVERY.md](RECOVERY.md). User shell tools, fonts a
3333
jq are declared through Home Manager. Python helpers use the system interpreter;
3434
the validation environment provides Python separately.
3535

36-
The external Config Bible repository contains the full documentation collection.
37-
Its location comes from `configBibleDirectory`; its app must be built separately.
38-
Personal Restic backups include that directory. The old batch-import instructions
39-
have been removed; use the Config Bible repository for its documentation workflow.
36+
The external Config Bible repository owns the handbook and its commands, desktop
37+
launcher, installer, and optional Home Manager module. It installs independently
38+
of dotfiles; see its README. Its installer registers its checkout for personal
39+
backup through the generic `~/.config/backup-personal/paths.d/` directory.
4040

4141
## Validation
4242

@@ -64,7 +64,7 @@ These checks do not run backups, perform restores, or activate a generation.
6464
Installed helpers load machine settings explicitly, including when invoked by
6565
systemd without interactive shell startup. For a one-off recovery or fixture run,
6666
set `DOTFILES_MACHINE_CONFIG` to another JSON file. Individual environment values
67-
can override defaults: `DOTFILES_DIR`, `CONFIG_BIBLE_HOME`, `BACKUP_MOUNT`,
67+
can override defaults: `DOTFILES_DIR`, `BACKUP_MOUNT`,
6868
`RESTIC_REPOSITORY`, `HM_PROFILE`, `RESTIC_WALLET`, `RESTIC_WALLET_FOLDER`, and
6969
`RESTIC_WALLET_ENTRY`. Mount and repository overrides are independent: override
7070
both when relocating the backup repository. Rebuild Home Manager to change the
@@ -110,11 +110,6 @@ historical Git objects or automatically remove local font duplicates.
110110

111111
## Runtime checks
112112

113-
`bible-secrets` returns 0 for a completed scan without matches, 1 when potential
114-
secrets are found, and 2 when a directory is missing or a search fails. It reports
115-
filenames only. Ripgrep ignore rules still apply; this is a heuristic scan of the
116-
searchable tree, not a guarantee that every local file is secret-free.
117-
118113
Neovim disables automatic formatting above 1 MiB of buffer contents and restores
119114
the previous buffer preference when the buffer shrinks. Manual `:LazyFormat`
120115
remains available. `ldir` lists directories and `lf` lists files.
@@ -136,7 +131,7 @@ action revisions. It validates and builds without activating Home Manager.
136131
## Backup coverage and health
137132

138133
Personal Restic captures include `~/github` (including unpushed repository work),
139-
`~/Projects`, the configured Config Bible directory, and the existing personal
134+
`~/Projects`, application-registered extra paths, and the existing personal
140135
folders. `backup-secrets` separately encrypts SSH, GnuPG, and KWallet; GnuPG
141136
sockets, lock files, and random-seed state are excluded from its archive.
142137

@@ -174,3 +169,12 @@ and cannot detect secrets pasted into otherwise tracked configuration files.
174169
`home-manager/machine.json` remains tracked because the Git-based Nix flake
175170
requires it. It contains machine identifiers and paths, so keep credentials out
176171
of it. Use sanitized example files when documenting secret configuration.
172+
173+
## Application backup registrations
174+
175+
Independent applications can register repositories in
176+
`~/.config/backup-personal/paths.d/`. Each file contains absolute paths, one per
177+
line; empty lines and lines beginning with `#` are ignored. Existing paths are
178+
added to personal backups. Relative paths are rejected before starting Restic.
179+
Applications own their registration files; dotfiles has no dependency on their
180+
source or installation modules.

‎configs/fish/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ Validate changes from the repository root with
5454
`nix develop ./home-manager --command ./scripts/check --build`, then stage new
5555
source files before applying with `hm-rebuild` or `hms`. Open a new terminal
5656
following cleanup so old in-memory functions and aliases disappear.
57+
58+
Config Bible functions and its launcher are installed by that repository's own
59+
installer. They are no longer part of this source tree or Home Manager module
60+
list. General workstation settings and backups remain owned by dotfiles.

‎configs/fish/conf.d/exports.fish‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ for directory in /usr/local/go/bin "$GOBIN"
4141
end
4242
end
4343

44-
# Shared workstation and Config Bible settings.
44+
# Shared workstation settings.
4545
dotfiles-settings

‎configs/fish/functions/bible-app.fish‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)