Skip to content

taffybar/nix-taffybar-template

Repository files navigation

nix-taffybar-template

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.

Goals

  • No submodules
  • No machine-specific paths
  • No user-specific naming
  • Good-looking default bar with a small amount of CSS

Quick Start

git clone https://github.com/<you>/nix-taffybar-template
cd nix-taffybar-template
nix run .#default

Development

nix develop
cabal run taffybar

Or use just shortcuts:

just run
just dev-run
just restart

Structure

  • flake.nix: pins dependencies and exposes packages.default, apps.default, and devShells.default
  • nix-taffybar-template.cabal: project-style executable definition
  • taffybar.hs: widget/layout configuration
  • taffybar.css: styling loaded from package data

Customization

  • Edit widget lists in taffybar.hs (startWidgets, centerWidgets, endWidgets)
  • Adjust colors/spacing in taffybar.css
  • Rename the package and executable once you fork

About

Minimal project-style Taffybar template with Nix flakes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors