Skip to content

About

🎩 The Fedora layer (dnf + RPM Fusion) of a cross-platform dotfiles system β€” the template the other Linux repos are stamped from.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

546 Commits

Folders and files

Repository files navigation

dotgibsonCILast CommitContributorsForksStargazersIssuesMIT License


Logo

🎩 dotfiles-Fedora

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
  1. About The Project
  2. Getting Started
  3. What's In This Layer
  4. Contributing
  5. License
  6. Contact

About The Project

dotfiles-Fedora β€” terminal demo

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

Languages

No new languages β€” this layer is shell and package config over Core's language stack.

Tools

  • Fedora
  • DNF
  • RPM Fusion
  • Flatpak
  • Wayland

(back to top)

Getting Started

Prerequisites

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.

Installation

git clone https://github.com/dotgibson/dotfiles-Fedora ~/dotfiles-Fedora
cd ~/dotfiles-Fedora
./bootstrap.sh
exec zsh

core/ 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.

(back to top)

What's In This Layer

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 β€” dnf provision (rpm-ostree layering on the atomic edition) + Core/OS symlink wiring (idempotent)
  • install/packages.txt β€” the dnf package list (modern CLI stack), verified against every supported Fedora release by the packages workflow
  • os/fedora.zsh β€” clipboard + package-manager aliases β†’ ~/.config/zsh/80-os.zsh
  • os/fedora.capabilities / os/fedora.atomic.capabilities β€” the dnf and rpm-ostree declarations Core's up, update nudge and maint runner dispatch through; bootstrap.sh links whichever matches the box, and test/check-flavors.sh gates the delta between them
  • os/fedora.conf / os/fedora.gitconfig β€” the tmux + git OS overlays
  • wsl/wsl.conf β€” the WSL boot config (systemd, default user, interop)
  • aliases.md β€” the Fedora alias cheat sheet (dotfiles-core's aliases.md covers the universal ones)
  • test/ β€” the repo's own suite (make suite): the flavour-pair test and the package resolver, run on every PR by the test workflow
  • core/ β€” vendored from dotfiles-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:

β†’ dotfiles-Fedora on the documentation hub

(back to top)

Contributing

This is an OS-native layer, so the contribution rule is a boundary rule:

  1. Never hand-edit core/. It is a vendored copy of dotfiles-core and is overwritten on the next sync. Fix shared config upstream in dotfiles-core, run make audit there, then make sync fans it out here.
  2. 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.
  3. Green the lint gate. This repo's CI runs shellcheck + bash -n / zsh -n on the repo-owned shell (the vendored core/ 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.

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Garrett Allen - @gerrrrt - garrettallen2@gmail.com - LinkedIn

Project Link: dotgibson

(back to top)

About

🎩 The Fedora layer (dnf + RPM Fusion) of a cross-platform dotfiles system β€” the template the other Linux repos are stamped from.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages