18 lines
642 B
Nix
18 lines
642 B
Nix
{ config, lib, pkgs, flakeRoot, ... }:
|
|
let
|
|
repoWaybarDir = flakeRoot.outPath + "/assets/conf/desktop/waybar";
|
|
in
|
|
{
|
|
programs.waybar.enable = true;
|
|
programs.waybar.style = lib.mkForce ""; # Schakel standaardstijl uit
|
|
home.file.".config/waybar/config" = {
|
|
source = "${repoWaybarDir}/config.jsonc";
|
|
};
|
|
# Overschrijf style.css handmatig na alle andere stappen
|
|
home.activation.waybarStyle = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
mkdir -p "${config.xdg.configHome}/waybar"
|
|
cp "${repoWaybarDir}/style.css" "${config.xdg.configHome}/waybar/style.css"
|
|
chmod 644 "${config.xdg.configHome}/waybar/style.css"
|
|
'';
|
|
}
|