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,23 +234,19 @@ in
};
}
];
style = builtins.readFile (
pkgs.substituteAll {
src = ./style.css;
style = pkgs.replaceVars ./style.css {
accent_color = accent.color;
accent_color = accent.color;
color_bg = color.bg;
color_bg_dark = color.bg_dark;
color_bg_light = color.bg_light;
color_txt = color.txt;
color_bg = color.bg;
color_bg_dark = color.bg_dark;
color_bg_light = color.bg_light;
color_txt = color.txt;
font_interface = font.interface;
font_interface = font.interface;
font_size_big = "${toString font.size.big}px";
font_size_medium = "${toString font.size.medium}px";
}
);
font_size_big = "${toString font.size.big}px";
font_size_medium = "${toString font.size.medium}px";
};
};
home.packages = with pkgs; [ waybar ];
};