aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
...
* docs(etc/networkd): document Type= match breadth for bond0Libravatar sommerfeld46 hours2-0/+6
| | | | | | | Type=ether and Type=wlan match every interface of that class. Add comments pointing out that future USB/Thunderbolt dongles would get auto-enslaved into bond0, and how to narrow the match if that becomes undesirable.
* fix(etc/mkinitcpio): restore fallback presetLibravatar sommerfeld46 hours1-4/+3
| | | | | | | Having only the 'default' preset means no safety net if the main initramfs ever fails to boot (broken firmware update, microcode regression, hook misconfig). The fallback image is ~40 MB and regenerates with every kernel update — cheap insurance.
* fix(etc/reflector): restore --protocol https; drop redundant flagLibravatar sommerfeld46 hours1-1/+1
| | | | | | | | Pristine /etc/xdg/reflector/reflector.conf sets '--protocol https'. Dropping it reverts to reflector's permissive default (http, https, rsync, ftp), which could let non-HTTPS mirrors into the mirrorlist. Also drop '--completion-percent 100' — that's reflector's default.
* feat(etc,readd): rename etc-drift to etc; add etc-readd + readdLibravatar sommerfeld46 hours2-4/+54
| | | | | | | | | | | - etc-drift → etc (the main entry point to the /etc subsystem). - New etc-readd: pull changes from live /etc back into tracked repo files (the /etc analog of 'chezmoi re-add'). No args refreshes all tracked files; explicit paths error if the file isn't already tracked (use etc-add to adopt). Skips unchanged files silently; runs 'just apply' only when something changed. - New top-level readd: 'chezmoi re-add' + 'just etc-readd'. One command to mirror live state back into the repo.
* feat(etc): auto-apply in etc-reset/etc-rm + add etc-untrackLibravatar sommerfeld46 hours2-6/+9
| | | | | | | | | | - etc-reset and etc-rm now chain 'just apply' at the end, so a single invocation leaves both repo and /etc consistent. - New etc-untrack recipe = etc-reset + etc-rm. One command to cleanly stop tracking an owned /etc file: before: just etc-reset X && just apply && just etc-rm X && just apply after : just etc-untrack X (etc-untrack doesn't apply to unowned files — use etc-rm.)
* feat(etc): track drifted host configsLibravatar sommerfeld46 hours11-0/+797
| | | | | | | Adopted via 'just etc-add' after 'just etc-drift' surfaced them: locale.conf, locale.gen, mkinitcpio.conf, mkinitcpio.d/linux.preset, pacman.conf, resolved.conf, systemd/network/30-bond*, and the shokz udev blacklist rule.
* feat(justfile): add etc-rm recipeLibravatar sommerfeld46 hours2-1/+24
| | | | | | | | | | | Removes one or more files from the repo's etc/ tree and tidies any now-empty parent directories (bounded to inside etc/). Leaves the live /etc copy untouched. Composes with etc-reset to stop tracking a file cleanly: just etc-reset /etc/foo.conf # repo → pristine just apply # deploy pristine to /etc just etc-rm etc/foo.conf # stop tracking; /etc unchanged
* refactor(etc-reset): write pristine into repo, not /etcLibravatar sommerfeld46 hours1-39/+27
| | | | | | | | | | | Operating on /etc directly created a two-source-of-truth problem: chezmoi apply would just redeploy the repo copy anyway, so we had to either refuse managed paths or bolt on a --force flag. New semantics: etc-reset overwrites etc/<path> in the repo with the pristine package contents (no doas needed, no /etc touched). User then runs 'just apply' to deploy. Unowned files are now an error (nothing to reset to) — remove them from the repo manually.
* feat(etc/.ignore): exclude getty@tty1 override (contains username)Libravatar sommerfeld46 hours1-0/+3
|
* perf(etc-diff,etc-upstream-diff): default to repo files, avoid doas when ↵Libravatar sommerfeld46 hours1-17/+25
| | | | | | | | | | | readable - etc-upstream-diff: default to iterating over repo-managed etc/ files instead of running full 'pacman -Qkk' (scans every installed package). Upstream drift only matters for files I actually track. - both recipes: read live /etc via plain cat when the file is world-readable; only fall back to 'doas cat' for restricted files (e.g. /etc/doas.conf 0600). Cuts doas round-trips for the common case.
* refactor(just): reorder status to dotfile-drift, pkg-drift, etc-driftLibravatar sommerfeld46 hours1-1/+1
| | | | | dotfile-drift is fastest so it gives immediate feedback; etc-drift is slowest (full pacman -Qkk pass) so it runs last.
* feat(just): include etc in status & diff recipesLibravatar sommerfeld46 hours1-4/+15
| | | | | | | - status now runs etc-drift alongside pkg-drift and dotfile-drift - diff routes /etc/* paths to etc-diff; with no arg, runs both chezmoi diff and etc-diff so drift in /etc is visible alongside $HOME dotfiles.
* fix(etc-diff,etc-upstream-diff): use doas cat for root-only live filesLibravatar sommerfeld46 hours1-4/+5
| | | | | | | /etc/doas.conf (0600) and similar mode-restricted files triggered 'Permission denied' when diff tried to read them as the user. Read via 'doas cat' on the live side; keep the repo/pristine side as the user since those are readable.
* feat(etc): diff/upstream-diff/add/reset recipes + ignore fstabLibravatar sommerfeld46 hours3-8/+153
| | | | | | | | | | | | | - etc-diff: diff repo-managed etc/<path> vs live /etc (defaults to all) - etc-upstream-diff: diff live /etc vs pristine pacman archive (defaults to pacman -Qkk modified set) - etc-add: copy /etc/<path> into the repo's etc/ tree - etc-reset: restore pristine via bsdtar -xpf, or rm if unowned; refuses managed paths without --force - ignore /etc/fstab (host-specific UUIDs/layout) - path-traversal guards on all recipe inputs - regular-file-only enforcement (no symlinks/dirs) - fail-fast with clear message if mirror can't supply installed version
* fix(etc-drift): match real pacman -Qkk "backup file:" prefix formatLibravatar sommerfeld46 hours2-3/+6
| | | | | | | | | Pacman emits lines like "backup file: <pkg>: <path> (<reason>)", not the "(Modified backup file)" suffix format. Anchor the path extraction to /etc/ to avoid catching stderr warnings interleaved into a line. Also extend etc/.ignore with /etc/{passwd,group,shells} — system-managed identity files that surfaced in the new drift output.
* fix(etc-drift): use pacman -Qkk for reliable modified-file detectionLibravatar sommerfeld46 hours1-1/+1
| | | | | | | The old -Qii regex "MODIFIED\s+/\S+" accidentally matched UNMODIFIED lines (no word boundary), which hid truly-modified configs like pacman.conf from the drift report. Switch to -Qkk which uses an explicit "Modified backup file" / "Altered backup file" tag that is unambiguous.
* feat(etc/.ignore): exclude wireguard .network (contains public IPs)Libravatar sommerfeld46 hours1-4/+4
|
* fix(etc-drift): while loop must not exit with keep filter statusLibravatar sommerfeld46 hours1-2/+2
|
* feat(etc/.ignore): exclude wireguard .netdev (contains PrivateKey)Libravatar sommerfeld46 hours1-0/+5
|
* feat(etc/.ignore): filter pacsave/pacnew, hostname, xml/catalogLibravatar sommerfeld46 hours1-0/+8
|
* fix(etc-drift): tolerate no-match grep and whitespace-separated MODIFIEDLibravatar sommerfeld46 hours1-3/+3
| | | | | | | - grep exits 1 when pattern has no matches; under pipefail that killed the recipe. Wrap both pipelines in `{ ...; } || true`. - pacman -Qii can separate MODIFIED from the path with spaces or a tab depending on formatting; use \s+ instead of \t.
* feat(etc): drift detection + auto-enumerating deploy templateLibravatar sommerfeld46 hours4-21/+86
| | | | | | | | | | | - `just etc-drift` reports /etc files modified from pacman defaults (via pacman -Qii) and user-created files (via pacman -Qo), subtracting already-managed paths and patterns listed in etc/.ignore. - Refactor run_onchange_after_deploy-etc.sh.tmpl to enumerate files under etc/ automatically via find; single combined hash via chezmoi output + sha256sum, so new files only need to be dropped into etc/. - etc/.ignore seeds noise filters: machine-id, ssh host keys, pacman keyring, mirrorlist, shadow/passwd backups, sbctl keys, ca-certs.
* fix(services): ignore more networkd/resolved companion socketsLibravatar sommerfeld46 hours1-0/+5
| | | | | | | systemd-networkd-resolve-hook.socket, systemd-networkd-varlink.socket, systemd-networkd-varlink-metrics.socket, systemd-resolved-monitor.socket, systemd-resolved-varlink.socket are all auto-activated via dependency graphs of their parent services and have no [Install] of their own.
* fix(services): drop systemd-networkd.socket from curated, add to .ignoreLibravatar sommerfeld46 hours2-1/+1
| | | | | | | systemd-networkd.socket has no [Install] section; it's auto-activated by systemd-networkd.service via Sockets=. systemctl enable fails on it. It still shows as enabled (symlinked from the service's dependency graph), so add it to .ignore to keep drift output clean.
* feat(services): add .ignore list for distro-default noiseLibravatar sommerfeld46 hours2-1/+13
| | | | | | | | | | systemd-units/.ignore is a user-maintainable list of units to suppress from 'just services-drift' uncurated output. Starts with three systemd presets that are harmless noise: remote-fs.target, systemd-network-generator.service, systemd-userdbd.socket. The dotfile is outside the *.txt glob so services / services-enable don't accidentally pick it up.
* feat(services): curate systemd-networkd alongside iwdLibravatar sommerfeld46 hours1-0/+3
| | | | | User runs iwd (wifi auth) + systemd-networkd (IP config) together, with systemd-networkd-wait-online as boot gate.
* feat(services): curate tor + pcscd, filter @ templates from driftLibravatar sommerfeld46 hours3-1/+6
| | | | | | | | | | - tor.service -> systemd-units/btc.txt (pairs with tor in meta/btc.txt) - pcscd.socket -> systemd-units/base.txt (smartcards, used by GPG) - services-drift now filters @-template units (getty@ etc.), which are abstract and can't be curated meaningfully anyway systemd-networkd.{service,socket,wait-online} remain uncurated; that's a real decision (conflicts with iwd) left to disable by hand.
* feat(services): curated systemd units via just recipesLibravatar sommerfeld46 hours5-30/+73
| | | | | | | | | | | | | | | | Introduce systemd-units/<group>.txt files paired by name with meta groups (systemd-units/base.txt <-> meta/base.txt). Units listed there are enabled by a new 'just services-enable' recipe, wired into 'just init' so bootstrap.sh no longer needs its own systemctl loop. New justfile recipes (Services section): services list curated units with enabled/active state services-enable idempotent 'systemctl enable --now', soft-fail per unit services-drift two-way diff vs systemctl list-unit-files bootstrap.sh drops its hardcoded 9-unit loop and laptop TLP block (~22 lines); 'just init' now handles it. tlp.service lives directly in systemd-units/base.txt (no laptop gating).
* docs(readme): document pre-bootstrap user creationLibravatar sommerfeld46 hours1-8/+13
| | | | | | Make the 'wheel user must already exist' prerequisite explicit with a three-line useradd/passwd snippet, rather than leaving it implicit in bootstrap.sh's preconditions.
* feat(bootstrap): add Arch post-install stepsLibravatar sommerfeld46 hours2-10/+54
| | | | | | | | | | | | | | | | | | | | After 'just init' the script now: - enables recommended systemd units that base.txt installs but nothing was activating: fstrim.timer, systemd-timesyncd, systemd-resolved, reflector.timer, paccache.timer, pkgstats.timer, acpid, cpupower, iwd - enables tlp.service only when a battery is present (/sys/class/power_supply/BAT*) - refreshes the pacman mirrorlist via reflector using the already- deployed /etc/xdg/reflector/reflector.conf - runs xdg-user-dirs-update to create ~/Documents, ~/Downloads, etc. Each step is soft-fail: warns and continues on failure rather than aborting the whole bootstrap. pacman.conf tuning is intentionally left out (should be managed via chezmoi's etc/ pipeline). User creation is also out of scope; the script continues to require the wheel user to exist beforehand, per the Arch installation guide.
* feat: add bootstrap.sh for fresh Arch installsLibravatar sommerfeld46 hours3-1/+96
| | | | | | | | | | | | Takes a minimal Arch system (only 'base' installed) to the point where 'just init' has run and dotfiles are deployed. Installs prerequisites (sudo, git, base-devel, chezmoi, just, efibootmgr), enables %wheel in sudoers, bootstraps paru-bin from the AUR, clones the repo, runs 'just init' (which swaps sudo for doas-sudo-shim via the existing base meta list), and launches create-efi if no Arch EFI boot entry exists. Designed to be curlable: curl -fsSL https://raw.githubusercontent.com/sommerfelddev/dotfiles/master/bootstrap.sh | sh
* Revert partial meta cleanup: restore mold, choose, curlie, dogLibravatar sommerfeld46 hours4-1/+5
| | | | | | | | | - mold moves cpp→dev (broader home; used by both Rust and C++ builds) - choose/curlie/dog restored to base (actively used) - restore 'alias curl=curlie' to match linux-headers stays only in nvidia.txt (pulled by nvidia-dkms; no other DKMS packages in the set).
* chore(zsh): drop 'stow' alias (migrated to chezmoi)Libravatar sommerfeld46 hours1-1/+0
|
* fix(zsh): drop 'curl=curlie' alias (curlie removed from base)Libravatar sommerfeld46 hours1-1/+0
|
* refactor(meta): audit and clean up package listsLibravatar sommerfeld46 hours8-33/+13
| | | | | | | | | | | | | | | | | | Structural: - Dedupe: drop git/unzip/wget/mold from dev, linux-headers from base, zbar from btc (kept in wayland) - Move thermald base→intel (Intel-only daemon) - Split wayland.txt into wayland (compositor stack), browser, office - Sort base.txt alphabetically Content: - Drop stale: dog, choose, curlie (base); sloccount (dev) - Drop redundant: pipenv, yarn (dev has uv and npm) - Drop niche: irqbalance, libusb-compat (base); go-md2man, flamelens (dev) - Switch doas-sudo-shim-k → doas-sudo-shim (mainline variant) Removed packages are list-only; uninstall afterward with paru -Rsn if they appear in 'just undeclared'.
* refactor(doas): widen setenv allowlist (PATH TERM PAGER)Libravatar sommerfeld46 hours1-1/+1
|
* feat: deploy /etc/doas.conf via chezmoiLibravatar sommerfeld46 hours2-0/+9
| | | | | Added to the etc/ deploy loop plus a post-copy chown/chmod to 0400 root:root since doas refuses to parse otherwise.
* refactor: move create-efi.sh into dot_local/bin/Libravatar sommerfeld46 hours2-1/+1
| | | | | Aligned with the other personal scripts; chezmoi will deploy it as ~/.local/bin/create-efi (executable, no .sh extension).
* fix: 'just remove' only edits the list, never uninstallsLibravatar sommerfeld46 hours1-2/+1
| | | | | Package may belong to other groups; uninstall is the user's call (use 'just undeclared | paru -Rs -' afterward if desired).
* feat: add 'just remove' to drop packages from a group and uninstallLibravatar sommerfeld46 hours6-0/+27
|
* feat: 'just add' accepts multiple packagesLibravatar sommerfeld46 hours1-9/+11
|
* fix: pass --ask=4 to piped paru installs to auto-resolve conflictsLibravatar sommerfeld46 hours1-3/+3
| | | | | | Needed so the first 'just init' on a stock Arch system (sudo preinstalled) can swap sudo for doas-sudo-shim without a prompt pacman refuses to emit under --noconfirm.
* chore: drop --noconfirm from 'just add' (stdin-less invocations can prompt)Libravatar sommerfeld46 hours1-1/+1
|
* chore: add --noconfirm to all 'paru -S' invocations in justfileLibravatar sommerfeld46 hours1-4/+4
|
* feat: 'just undeclared' now considers only active (≥50%) groupsLibravatar sommerfeld46 hours1-16/+18
| | | | | | | | A package only listed in unadopted groups (e.g. steam in gaming on a non-gaming machine) now counts as undeclared. Extracts a hidden _active-packages helper so pkg-drift and undeclared share the same 'active list' logic.
* fix: align 'just groups' signalling with ≥50% thresholdLibravatar sommerfeld46 hours1-3/+3
| | | | | | - ✓ fully installed (100%) - ~ adopted but partial (≥50%, <100%) - ✗ not adopted (<50%, includes 0%)
* fix: 'just init' now deploys dotfiles after regenerating configLibravatar sommerfeld46 hours1-2/+2
|
* docs: fix 'just undeclared' doc comment (was collapsed by just)Libravatar sommerfeld46 hours1-2/+1
|
* feat: split drift recipes and add 'just undeclared'Libravatar sommerfeld46 hours2-8/+20
| | | | | | | | - 'just status' now a thin wrapper for 'pkg-drift + dotfile-drift' - 'just pkg-drift' and 'just dotfile-drift' are individually addressable - 'just undeclared' prints undeclared packages unindented, one per line, so they pipe cleanly into 'paru -Rs -' - pkg-drift reuses 'just undeclared' via sed to avoid duplicating logic
* feat: add 'just diff' and 'just merge' for chezmoi drift investigationLibravatar sommerfeld46 hours2-1/+14
| | | | | | Both accept an optional file path. 'just merge' without an argument runs chezmoi merge-all (interactive across all modified files); with an argument it merges just that one target.