Rename mkTarget's 'configElements' argument to 'config' and 'extraOptions' to 'options' to provide a more transparent interface with the underlying Nixpkgs module system.
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ mkTarget, ... }:
|
|
mkTarget {
|
|
name = "mangohud";
|
|
humanName = "mangohud";
|
|
|
|
config = [
|
|
(
|
|
{ fonts }:
|
|
{
|
|
programs.mangohud.settings = {
|
|
font_size = fonts.sizes.applications;
|
|
font_size_text = fonts.sizes.applications;
|
|
|
|
# TODO: Use the point unit:
|
|
# https://github.com/nix-community/stylix/issues/251.
|
|
font_scale = 1.33333;
|
|
};
|
|
}
|
|
)
|
|
(
|
|
{ opacity }:
|
|
{
|
|
programs.mangohud.settings = {
|
|
background_alpha = opacity.popups;
|
|
alpha = opacity.applications;
|
|
};
|
|
}
|
|
)
|
|
(
|
|
{ colors }:
|
|
{
|
|
programs.mangohud.settings = with colors; {
|
|
text_color = base05;
|
|
text_outline_color = base00;
|
|
background_color = base00;
|
|
gpu_color = base0B;
|
|
cpu_color = base0D;
|
|
vram_color = base0C;
|
|
media_player_color = base05;
|
|
engine_color = base0E;
|
|
wine_color = base0E;
|
|
frametime_color = base0B;
|
|
battery_color = base04;
|
|
io_color = base0A;
|
|
gpu_load_color = "${base0B}, ${base0A}, ${base08}";
|
|
cpu_load_color = "${base0B}, ${base0A}, ${base08}";
|
|
fps_color = "${base0B}, ${base0A}, ${base08}";
|
|
};
|
|
}
|
|
)
|
|
];
|
|
|
|
}
|