{ modules, inputs, ... }: { flake-file.inputs = { barbar.url = "git+https://git.scug.io/doloro/barbar?ref=master"; }; modules.barbar = { homeManager = { pkgs, ... }: { imports = [ inputs.barbar.homeManagerModules.default ]; programs.barbar = { enable = true; settings = { display = { monitor = "DP-2"; height = 20; antialiasing = true; default_text_size = 14.0; padding = 4.0; spacing = 8.0; # Absolute store path: barbar resolves `[display].theme` against # its cwd, which is not the home dir under systemd. theme = "${pkgs.writeText "barbar-base16.yaml" '' scheme: "Gruvbox dark, medium" author: "https://github.com/morhetz/gruvbox" base00: "282828" # bg base01: "3c3836" # bg1 base02: "504945" # bg2 base03: "665c54" # bg3 base04: "bdae93" # fg4 base05: "d5c4a1" # fg base06: "ebdbb2" # fg2 base07: "fbf1c7" # fg0 base08: "fb4934" # red base09: "fe8019" # orange base0A: "fabd2f" # yellow base0B: "b8bb26" # green base0C: "8ec07c" # aqua base0D: "83a598" # blue base0E: "d3869b" # purple base0F: "d65d0e" # brown ''}"; }; order = { left = [ "workspaces" ]; middle = [ ]; right = [ "audio" "clock" ]; }; modules.clock.show_seconds = false; modules.workspaces = { count = 10; gap = 3.0; slot_w = 10.0; slot_h = 17.0; radius = 2.5; scale_active = 1.0; scale_exists = 0.85; scale_absent = 0.65; }; }; }; }; }; }