Personal dotfiles for macOS and Fedora Workstation, managed with chezmoi. Other Linux systems get a smaller apt-based CLI setup.
On macOS, install Homebrew first:
brew install chezmoi git
chezmoi init --apply gaborbernat/dotfilesOn Fedora Workstation:
sudo dnf install chezmoi git
chezmoi init --apply gaborbernat/dotfilesOn an apt-based Linux system, install chezmoi and git with that distribution's package manager, then run
chezmoi init --apply gaborbernat/dotfiles. The apt manifest covers CLI tools; the Fedora
GNOME, hardware, and gaming setup only runs on Fedora.
If the repo is already checked out, initialize chezmoi with that checkout as its source:
chezmoi --source "$HOME/git/dotfiles" init
chezmoi source-path
chezmoi applyReplace the example path if needed. chezmoi init records the checkout's absolute path as sourceDir in
~/.config/chezmoi/chezmoi.toml, and the config template retains it when you run chezmoi update --init. Keep the
checkout on the branch you want to pull. Without --source, chezmoi uses ~/.local/share/chezmoi, whatever the shell's
working directory.
The Brewfile, RPM manifest, and apt manifest are the install sources. These links cover the desktop apps and frequently used CLI tools.
- Terminal: Ghostty on both systems.
- AI desktop: Claude on both systems; ChatGPT and Codex on Fedora.
- Messages: BlueBubbles on Fedora, relayed through a Mac.
- Remote desktop: GNOME Connections on Fedora for access to the Mac mini.
- Editors: VS Code and JetBrains Toolbox on both systems.
- Containers: Docker Desktop on macOS; Moby Engine and Distrobox on Fedora.
- Drive sync: Google Drive on macOS; Insync on Fedora.
- Video: IINA on macOS; Celluloid on Fedora.
- Screen recording: Gifox on macOS; Kooha and OBS Studio on Fedora.
- Stream Deck: Elgato Stream Deck on macOS; StreamController on Fedora with World Clocks and AMD GPU Monitor.
- Logitech devices: Logi Options+ on macOS; Solaar on Fedora.
- External displays: BetterDisplay on macOS; ddcutil on Fedora.
The macOS Brewfile also installs BetterCmdTab, Discord, Element, Insta360 Link Controller, LaunchControl, Path Finder, RØDE Central, Simple Comic, Keystroke Pro, and Magnet.
Both systems use JetBrains Mono fonts.
Fedora adds Discord, Astra Monitor, Dash to Panel, Copyous, LocalSend, Gradia, Bazecor, OpenRGB, and xremap. Gaming uses Steam, GameMode, MangoHud, Gamescope, and ProtonPlus.
Shell and prompt — Fish · fisher · Atuin · zoxide · direnv · mise
Git — Git · GitHub CLI · tig · delta · Git LFS
Files and search — ripgrep · fd · fzf · bat · lsd · glow · gdu
Languages and build — rustup · GNU Parallel · uv · ruff · ty · tox · prek
Packages — Homebrew · DNF · Flatpak ·
Cargo
Editors and multiplexers — Neovim · tmux · mprocs
Remote access — OpenSSH · Mosh · Eternal Terminal
Cloud — Google Cloud CLI
macOS integration — duti · mas
AI — Claude Code · ccstatusline · Codex · Copilot CLI · OpenCode
Forks made for this setup:
- gaborbernat/ghostty: the
feat/gtk-undo-upstreambranch is the source of PR #14653 and ofscripts/fedora/ghostty-undo.diff.
| Area | macOS | Fedora Workstation | Other apt-based Linux |
|---|---|---|---|
| Packages | Homebrew and App Store |
DNF, Flatpak, vendor tools |
apt CLI tools |
| Desktop | duti and LaunchAgent |
GNOME and keyboard setup | Shared shell config |
| Hardware | Stream Deck profiles | Peripheral tools | None |
Shared configuration includes Fish, Ghostty, Git, Atuin, mise, uv tools, Cargo tools, and the
~/.agents/skills store linked into Codex and Claude Code. The u Fish function updates the installed toolchains
and package managers; its stages depend on the host OS.
chezmoi enables the xremap and mise COPRs, the VS Code and Insync RPM
repositories, and Fedora Workstation's Steam repository before installing the RPM manifest.
Fedora's Moby packages provide Docker, and Distrobox uses that daemon. Membership in the docker group grants
root-level access.
ChatGPT's Linux app includes Codex. Its official Fedora RPM adds
OpenAI's signed DNF repository, so u updates it with the other RPMs.
Claude Desktop runs in a Debian Distrobox
because Anthropic publishes an apt package but no Fedora RPM. The app appears in GNOME; u updates its apt package
through distrobox-upgrade. Copilot CLI installs through npm and updates with the npm
stage.
Kooha, LocalSend, Gradia, ProtonPlus, and BlueBubbles install as system Flatpaks. StreamController comes
from Flathub and uses its OS, media, clock, and AMD GPU plugins for the Stream Deck. Copyous
comes from the GNOME Extensions release compatible with the running Shell. Bazecor uses a pinned upstream
AppImage and checksum; JetBrains Toolbox verifies the vendor's checksum for the current
release. uv uses its standalone installer so
uv self update works.
On Fedora, u also updates LVFS firmware, the installed Astra Monitor, Copyous, and
DDC brightness extensions, the latest stable Bazecor
AppImage, StreamController plugins, global mise tools, and existing Distrobox containers. Project mise files
are outside that upgrade. Docker image updates keep local images, stopped containers, and volumes intact.
u builds Ghostty from the latest upstream main source with the closed-tab restore patch from
PR #14653. When that PR merges, the update uses upstream without
the patch. Dash to Panel stays pinned to the patched chezmoi install.
GNOME uses Dash to Panel for a top taskbar on each monitor. Until Fedora's RPM supports indicator mirroring, chezmoi
installs the upstream change as a user extension.
Astra Monitor, Copyous, and DDC brightness then appear on both panels. The patched build also adds "Move to"
entries to a taskbar app's right-click menu, naming each monitor by model and the BenQ pair by position; switching back
to the RPM drops them.
AppIndicator also runs as a patched user copy of the RPM build. Its v66 breaks tray registration for the rest of the session when vicinae publishes its icon before its bus name (#675), and the copy retires itself once the patch stops applying.
xremap handles selected Super-key application shortcuts; Ghostty handles its own. The focused-monitor extension
opens new windows on the focused screen and moves the MX Master pointer to the LG TV once when that mouse becomes
active.
The Fedora Stream Deck keeps the macOS emoji keys and adds live clocks, CPU, RAM, and GPU tiles. The Main page links
directly to the Fedora, System, Media, and Emoji pages, which hold app launchers, hardware details, playback, and volume
controls; page links and launchers use installed icon assets. chezmoi creates missing pages and leaves later edits
made in StreamController intact. The Unicode input patch completes the
key sequence used by OSPlugin's text action for emoji and kaomoji.
chezmoi turns off StreamController's store auto-update because it replaces the patched OSPlugin; u stages plugin
updates, reapplies the patch, and keeps the installed version if the patch fails. Avoid the app's manual Update All
action, which bypasses this check. With auto-update off, the store also stops updating icons and wallpapers.
The agent-awake user service inhibits suspend while a Codex, Claude, or ChatGPT client is open; it leaves
display blanking available.
The rustdesk-pin-primary user service keeps RustDesk's
Wayland screen share on the HDMI dummy plug, or the primary monitor without it, so a
connection while the displays are off or unplugged no longer brings back the screen picker. GNOME refuses screen sharing
while the session is locked.
chezmoi installs the latest TuxTalk release RPM when the installed one is
older, after checking its SHA-256 digest, and binds Super+D to toggle dictation.
The first apply also sets Fish as the login shell, enables SSH, Mosh, and Eternal Terminal, and adds the account
to the docker and gamemode groups. Log out and back in for the group, shell, and newly installed GNOME extension
changes. Then sign in to Insync and select the Google Drive folders to sync.
The Antec Flux Pro display needs a separate community driver. Review its sensor configuration for this machine, then install it with:
bash "$(chezmoi source-path)/scripts/fedora/flux-pro/setup.sh"A Windows 11 VM for testing Python projects runs in Docker through
dockur/windows. The first start downloads Windows and installs it unattended. The
first-logon script enables long paths and OpenSSH with your
~/.ssh/id_ed25519.pub, and installs uv, Python 3.11 to 3.15, tox with tox-uv,
and Git. The VM stays off until something starts it:
docker compose -f ~/.config/windows-vm/compose.yml up -d # first install; watch at http://localhost:8006
winvm ssh # PowerShell over SSH as $USERwinvm lets several agents share the VM: each winvm up holds a shared flock for
as long as the calling process lives, and winvm down stops the VM only when no other lease remains. A stop in progress
holds the lock exclusively, so a concurrent up waits for it and then boots the VM again.
Ports listen on localhost only. The Windows password defaults to admin; set WINDOWS_VM_PASSWORD before the first
start to change it. The first-logon script runs only on that first install, so changes to it need
docker compose -f ~/.config/windows-vm/compose.yml down -v to reinstall.
Sign in to Steam and enable Steam Play in its Compatibility settings for Windows games. chezmoi installs GameMode,
MangoHud, and Gamescope; add their launch options per game.
To play on the LG TV, switch to the gaming user: its SteamOS-style
session from ChimeraOS
drives the TV directly while your desktop session keeps running (Ctrl+Alt+F2 returns to it). The first apply creates the
user, the shared /home/games/steam library, and the login-screen avatars and monitor layout; set its password with
sudo passwd gaming.
Steam keeps a library list per account, so start and quit it once as each user, then rerun the installer to register
the shared library for both. The installer also makes each user's built-in Steam library read-only, so an install aimed
there fails with a disk write error; pick /home/games/steam instead.
Quit desktop Steam before switching, since it keeps the controller open. In the gaming session, turn on Bluetooth
under Steam's settings, or Steam powers the adapter off for both users. u shows new upstream session commits and
installs them after you confirm.
Connecting one of the paired Xbox controllers listed in ids.conf over Bluetooth runs
a udev trigger that wakes the TV over Wake-on-LAN, switches it to HDMI 1
through webOS, and opens Big Picture: in the session on screen if someone is logged in, otherwise by logging in gaming
once through GDM's runtime config. It also unlocks a locked desktop so Big Picture works without a keyboard, which is
why only listed controllers on Bluetooth count: a USB device can claim any vendor ID. The trigger ignores a controller
reconnecting mid-game. When the last Xbox controller stays disconnected for 60 seconds and no game is running, a
second trigger exits Steam and turns the TV off, unless the TV has moved to
another input or app. Enable Turn on via Wi-Fi on the TV, and accept the pairing prompt it shows on the first connect.
On the desktop, order-monitors makes the left BenQ primary while it is connected and the TV otherwise, so Big Picture
and games open on the TV when the desk screens are off. An unknown display keeps its place, but the primary rule still
applies. GNOME ignores gamepad input, so the desktop wakes the screens and holds off blanking until the last Xbox
controller disconnects.
For iMessage on Fedora, BlueBubbles needs its server running on an awake Mac
signed in to Messages. Complete the server's Full Disk Access, notification, and connection setup on the Mac, then
connect the Fedora app. GNOME starts the client at login and hides it in the top bar after the tray appears; closing its
window keeps it running. Leave the app's own startup option off to avoid a second instance. The optional Private API
requires a separate macOS setup.
For graphical access to the Mac mini on the local network, enable macOS
Screen Sharing and open vnc://Bernats-Mac-mini.local:5900 in
GNOME Connections, which comes from Fedora's RPM repository. Sign in with the Mac account.
The Brewfile installs CLI tools, apps, fonts, and Mac App Store entries. chezmoi also applies duti
file associations and Stream Deck profiles, and on the Mac mini it loads the opener socket LaunchAgent. Install
Docker Desktop from its DMG instead, because its cask asks for sudo on updates.
chezmoi status
chezmoi updatechezmoi update pulls the configured source checkout and applies it. A separate chezmoi apply is only needed after
local edits or a partial apply. --init reloads the chezmoi config template; it does not create a missing source
checkout. Run u for package and tool updates.
Run gh auth login for GitHub operations. Fish reads ~/.secrets when it exists; chezmoi creates that file once and
keeps its contents out of the repo. maintainer needs GITHUB_TOKEN, while git-tidy skips PR checks without it.
Optional machine-local files live in ~/.local/share/chezmoi-private. Public scripts read them directly:
| File | Use |
|---|---|
Brewfile and Brewfile.skip |
Add or omit Homebrew entries on one machine |
fish_work.fish |
Work-specific Fish settings |
gitconfig_work |
Work Git identity and settings |
uv_tools_work.txt |
Private uv tools |
codex_work.toml |
Private Codex config |
ai_instructions_work.md |
Private agent instructions |
| Path | Use |
|---|---|
dot_Brewfile |
macOS packages |
dot_dnf_packages.txt |
Fedora RPMs |
dot_apt_packages.txt |
apt CLI tools |
dot_config/ |
Shell, terminal, and user services |
dot_agents/, dot_codex/, private_dot_claude/ |
Agent configuration |
dot_local/ |
CLI wrappers and their source |
scripts/fedora/ |
Fedora system and hardware setup |
run_once_*, run_onchange_*, run_after_* |
Setup scripts |
The Python scripts under dot_local/scripts have a pytest suite, which CI runs on every pull request. Run it locally
with:
cd dot_local/scripts
uv run --group test pytest