The Fedora OS-native layer β and the template every other Linux repo is stamped from.
Explore the docs Β»
View Demo
Β·
Report Bug
Β·
Request Feature
Table of Contents
dotfiles-Fedora is the OS-native layer for Fedora β one node in a
cross-platform dotfiles system. The shared Core (zsh, tmux, Neovim, git,
starship, mise) is authored once in
dotfiles-core and vendored under
core/ via git subtree, so a clone is self-contained. This repo adds only what
is genuinely Fedora: dnf + RPM Fusion, Flathub, the Wayland clipboard shim, and
SELinux helpers.
It is also the template the other Linux repos are stamped from β swap the package manager and clipboard backend, keep the structure. The full docs live on the documentation site.
The system is three layers, each building on the one below:
| Layer | Lives in | Owns |
|---|---|---|
| Core | dotfiles-core β vendored into every OS repo's core/ |
zsh, tmux, nvim, git, starship β identical everywhere |
| OS-native | this repo + dotfiles-{MacBook,Windows,Arch,Debian,openSUSE,Alpine,Gentoo} |
package manager, clipboard, paths |
| Role | dotfiles-Offense, dotfiles-Defense |
offensive / defensive tooling |
No new languages β this layer is shell and package config over Core's language stack.
A Fedora box (Workstation, Server, or a WSL image) and Git. Everything else β
zsh, tmux, nvim, starship, and the modern-CLI stack β is provisioned by
bootstrap.sh.
The atomic edition β Silverblue, Kinoite, or any bootc host β is the same
bootstrap as a variant: it detects /run/ostree-booted and layers the same package
list with rpm-ostree instead of installing it live. Nothing layered is on PATH until
you reboot, so a fresh atomic box takes two runs: ./bootstrap.sh, reboot when it
tells you to, then ./bootstrap.sh once more so the cargo/go tools build against the
layered toolchain. That second run is the measured cost of the edition β a full second
deployment plus the from-source builds on top of it.
git clone https://github.com/dotgibson/dotfiles-Fedora ~/dotfiles-Fedora
cd ~/dotfiles-Fedora
./bootstrap.sh
exec zshcore/ is a vendored copy and is already present in a clone β there is no
submodule step. bootstrap.sh is idempotent: it provisions dnf packages and
symlinks Core + the Fedora layer into place.
Not sure what it will do to a machine that already has dotfiles? Preview it β this changes nothing:
./bootstrap.sh --dry-run| Flag | Effect |
|---|---|
--dry-run |
Print the full plan (packages and symlinks); mutate nothing |
--links-only |
Re-link only β no dnf, no downloads |
--no-flatpak |
Skip Flathub (WSL, headless/server boxes) |
--only / --skip |
Restrict wiring to module groups: zsh nvim tmux git prompt tools |
--strict |
Exit non-zero if any best-effort step failed |
--force-os |
Allow a Fedora-like distro (RHEL/Alma/Rocky/Nobara) |
It needs root only to install packages, and resolves that once β running as root
(a container, a WSL first boot) works with no sudo installed at all. Existing files
are always backed up to <file>.pre-dotfiles.<epoch> before being replaced.
Only what changes with the OS. The heavy lifting β the shell modules, editor, and prompt β comes from vendored Core; this repo owns the Fedora specifics:
bootstrap.shβdnfprovision (rpm-ostreelayering on the atomic edition) + Core/OS symlink wiring (idempotent)install/packages.txtβ thednfpackage list (modern CLI stack), verified against every supported Fedora release by thepackagesworkflowos/fedora.zshβ clipboard + package-manager aliases β~/.config/zsh/80-os.zshos/fedora.capabilities/os/fedora.atomic.capabilitiesβ the dnf and rpm-ostree declarations Core'sup, update nudge and maint runner dispatch through;bootstrap.shlinks whichever matches the box, andtest/check-flavors.shgates the delta between themos/fedora.conf/os/fedora.gitconfigβ the tmux + git OS overlayswsl/wsl.confβ the WSL boot config (systemd, default user, interop)aliases.mdβ the Fedora alias cheat sheet (dotfiles-core'saliases.mdcovers the universal ones)test/β the repo's own suite (make suite): the flavour-pair test and the package resolver, run on every PR by thetestworkflowcore/β vendored fromdotfiles-core(read-only here; edit upstream)
The things that actually bite on Fedora β dnf5, RPM Fusion, the Wayland clipboard
shim, and SELinux (se-restore / se-denials / se-why) β are written up on
the hub, alongside the per-distro porting matrix:
This is an OS-native layer, so the contribution rule is a boundary rule:
- Never hand-edit
core/. It is a vendored copy ofdotfiles-coreand is overwritten on the next sync. Fix shared config upstream indotfiles-core, runmake auditthere, thenmake syncfans it out here. - Keep changes genuinely Fedora. If it would be identical on every distro, it belongs in Core; if it changes with the operator, it belongs in a role repo.
- Green the lint gate. This repo's CI runs shellcheck +
bash -n/zsh -non the repo-owned shell (the vendoredcore/is excluded β it is gated upstream).
make # list every target
make lint # the gate: shellcheck + bash -n + zsh -n, exactly as CI runs it
make check # lint + a hermetic --links-only run in a throwaway HOME
make hooks # install the pre-commit hooks (shellcheck, markdownlint, gitleaks)Full details in CONTRIBUTING.md; the trust decisions
bootstrap.sh makes when it reaches outside dnf are documented in
SECURITY.md.
Structural changes to the OS-native layout start here and propagate per the porting matrix. Bugs and ideas: open an issue.
Distributed under the MIT License. See LICENSE for more information.
Garrett Allen - @gerrrrt - garrettallen2@gmail.com - LinkedIn
Project Link: dotgibson
