A minimal, project-style taffybar configuration template built with Nix flakes.
This is intended as a clean answer to taffybar issue #563: a fully working flake-based example that builds a custom taffybar binary from a normal Haskell project.
- No submodules
- No machine-specific paths
- No user-specific naming
- Good-looking default bar with a small amount of CSS
git clone https://github.com/<you>/nix-taffybar-template
cd nix-taffybar-template
nix run .#defaultnix develop
cabal run taffybarOr use just shortcuts:
just run
just dev-run
just restartflake.nix: pins dependencies and exposespackages.default,apps.default, anddevShells.defaultnix-taffybar-template.cabal: project-style executable definitiontaffybar.hs: widget/layout configurationtaffybar.css: styling loaded from package data
- Edit widget lists in
taffybar.hs(startWidgets,centerWidgets,endWidgets) - Adjust colors/spacing in
taffybar.css - Rename the package and executable once you fork