testsAndMisc/linux_configuration/fresh-install
Krzysztof kuhy Rudnicki 6b828d29aa Extract digital-wellbeing; the directory-depth cap now enforces
The last unit over the cap is now github.com/kuhyx/digital-wellbeing, cloned
at ~/digital-wellbeing, and `--warn` is gone from the directory-depth-cap
hook. `check_directory_depth.sh --all` exits 0 with zero violations, down from
46 at the start of the session. That was the point of the campaign.

History was filtered across all three paths the unit has lived at (63
commits); the current path alone holds 2.

The six suites that test this code lived in linux_configuration/tests/ rather
than beside it, so they were filtered separately (24 commits) and merged in as
a second root. A path filter of the unit alone would have left them here,
testing code that had left the repo -- and their names would still have been
in shell-tests.yml's hardcoded arrays, failing CI on missing files.

linux_configuration/lib/common.sh is vendored into vendor/ rather than trimmed
to the four functions actually used: set_actual_user_vars calls two of the
others, so a trim breaks silently. It is in vendor/ and not lib/ because
test_music_parallelism.sh copies the unit's own lib/ into a scratch worktree
while stubbing the shared lib; in one directory the real common.sh overwrote
the stub, and the suite silently measured the wrong library.

Running the callers caught what shellcheck and grep both missed:
check_and_enable_services.sh died with "DW_REPO: unbound variable" because the
definition sat below its first use. It now runs clean and reports ok for every
extracted-unit check.

Two long-standing live defects fixed as a consequence. The pacman-wrapper
drift manifest embeds ABSOLUTE paths and had named deleted scripts/ paths
since the flatten, so the check reported a permanent false "stale or
tampered"; it now verifies, with unchanged hashes proving the extracted bytes
are identical. And the last two stale live references are gone: 8 -> 0.

The two pre-commit excludes for setup_midnight_shutdown.sh are dropped rather
than moved. lsattr shows nothing in the unit is chattr +i any more, and the
fixer hooks leave the file alone when allowed to run.

Removing 80 shell files also shrank the jscpd denominator enough that the
virtualenv/tqdm clones inside the GENERATED .ci-mirror-venv/ tipped the repo
to 2.09% and blocked this commit, which adds no duplication. That directory is
the same vendored third-party shell the ignore list already excludes as
.venv/, just under another name; jscpd walks the working tree rather than the
index, so being untracked did not spare it. Excluded by name: 1.74%.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
2026-08-23 20:57:51 +02:00
..
lib Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
aur_packages.txt Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
detect_gpu_and_install.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
detect_gpu.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
install_amd_driver.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
install_intel_driver.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
install_nvidia_driver.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
main.sh Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
makepkg.conf Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
mkinitcpio.conf Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
mpv.conf Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
packages.txt Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
pacman_packages.txt Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
pacman.conf Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
README.md Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00

Package Lists

This directory contains package lists for the fresh install script:

  • pacman_packages.txt - List of packages to install via pacman
  • aur_packages.txt - List of AUR packages with their repository URLs

Format

pacman_packages.txt

One package name per line:

package1
package2
package3
# This is a comment and will be ignored
# Another comment

aur_packages.txt

Package name and repository URL separated by space:

package-name https://aur.archlinux.org/package-name.git
another-package https://aur.archlinux.org/another-package.git
# This is a comment and will be ignored
# Another comment

Note: Lines starting with anything other than lowercase letters (a-z) or digits (0-9) will be ignored as comments. This includes lines starting with #, spaces, uppercase letters, or special characters.

Usage

The main.sh script will automatically read from these files:

  • Pacman packages will be installed via pacman -Sy --noconfirm
  • AUR packages will be built and installed via the install_from_aur function

Modifying Package Lists

To add or remove packages:

  1. Edit the appropriate .txt file
  2. For AUR packages, ensure the format is correct (package-name followed by space and URL)
  3. You can add comments by starting lines with # or any non-alphanumeric character
  4. Save the file - the script will automatically pick up changes on next run

Comments

You can add comments to organize your package lists:

# Essential packages
git
vim

# Development tools
gcc
make

# Optional packages (commented out)
# some-package-i-might-want-later