mangohud: add module
This commit is contained in:
parent
666eee4f72
commit
fb50102daf
9 changed files with 174 additions and 1 deletions
|
|
@ -0,0 +1,2 @@
|
|||
no_display
|
||||
output_folder=/home/user/Documents/mpv-mangohud
|
||||
13
tests/modules/programs/mangohud/basic-configuration.conf
Normal file
13
tests/modules/programs/mangohud/basic-configuration.conf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
cpu_load_change
|
||||
cpu_load_value
|
||||
cpu_mhz
|
||||
cpu_power
|
||||
cpu_stats
|
||||
cpu_temp
|
||||
cpu_text=CPU
|
||||
fps_limit=30,60
|
||||
legacy_layout=false
|
||||
media_player_name=spotify
|
||||
media_player_order=title,artist,album
|
||||
output_folder=/home/user/Documents/mangohud
|
||||
vsync=0
|
||||
40
tests/modules/programs/mangohud/basic-configuration.nix
Normal file
40
tests/modules/programs/mangohud/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.mangohud = {
|
||||
enable = true;
|
||||
package = pkgs.writeScriptBin "dummy-mangohud" "";
|
||||
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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
1
tests/modules/programs/mangohud/default.nix
Normal file
1
tests/modules/programs/mangohud/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ mangohud-basic-configuration = ./basic-configuration.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue