{ config, lib, pkgs, flakeRoot, ... }: let repoWaybarDir = flakeRoot + "/assets/conf/desktop/waybar"; in { programs.waybar.enable = true; # Ensure config matches repo (HM-managed symlink, not user-editable) xdg.configFile."waybar/config" = { source = lib.mkForce repoWaybarDir + "/config.jsonc"; backup = lib.mkForce false; force = true; }; # Override HM's internally-generated waybar-style.css derivation # and use your repo file instead. xdg.configFile."waybar/style.css" = { source = lib.mkForce (repoWaybarDir + "/style.css"); backup = lib.mkForce false; force = true; }; # Prevent HM from also trying to generate style content via programs.waybar.style # (not strictly required once mkForce is in place, but keeps intent clear) programs.waybar.style = ""; }