depot/third_party/home-manager/tests/modules/programs/mangohud/basic-configuration.nix
Default email cfcd52ff70 Project import generated by Copybara.
GitOrigin-RevId: 70c5b268e10025c70823767f4fb49e240b40151d
2021-11-05 00:42:44 +08:00

40 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
config = {
programs.mangohud = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
output_folder = /home/user/Documents/mangohud;
fps_limit = [ 30 60 ];
vsync = 0;
legacy_layout = false;
cpu_stats = true;
cpu_temp = true;
cpu_power = true;
cpu_text = "CPU";
cpu_mhz = true;
cpu_load_change = true;
cpu_load_value = true;
media_player_name = "spotify";
media_player_order = [ "title" "artist" "album" ];
};
settingsPerApplication = {
mpv = {
output_folder = /home/user/Documents/mpv-mangohud;
no_display = true;
};
};
};
nmt.script = ''
assertFileExists home-files/.config/MangoHud/MangoHud.conf
assertFileContent home-files/.config/MangoHud/MangoHud.conf \
${./basic-configuration.conf}
assertFileExists home-files/.config/MangoHud/mpv.conf
assertFileContent home-files/.config/MangoHud/mpv.conf \
${./basic-configuration-mpv.conf}
'';
};
}