waybar: fix use of deprecated function substituteAll

This commit is contained in:
Leonardo Eugênio 2025-06-22 23:57:12 -03:00
parent 48ca243d3b
commit dc89b61ff7
No known key found for this signature in database
GPG key ID: 2F8F21CE8721456B

View file

@ -234,10 +234,7 @@ in
}; };
} }
]; ];
style = builtins.readFile ( style = pkgs.replaceVars ./style.css {
pkgs.substituteAll {
src = ./style.css;
accent_color = accent.color; accent_color = accent.color;
color_bg = color.bg; color_bg = color.bg;
@ -249,8 +246,7 @@ in
font_size_big = "${toString font.size.big}px"; font_size_big = "${toString font.size.big}px";
font_size_medium = "${toString font.size.medium}px"; font_size_medium = "${toString font.size.medium}px";
} };
);
}; };
home.packages = with pkgs; [ waybar ]; home.packages = with pkgs; [ waybar ];
}; };