mangohud: add module

This commit is contained in:
ZerataX 2021-06-12 09:55:58 +02:00
parent 666eee4f72
commit fb50102daf
No known key found for this signature in database
GPG key ID: 8333735E784DF9D4
9 changed files with 174 additions and 1 deletions

View file

@ -0,0 +1,2 @@
no_display
output_folder=/home/user/Documents/mpv-mangohud

View 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

View 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}
'';
};
}

View file

@ -0,0 +1 @@
{ mangohud-basic-configuration = ./basic-configuration.nix; }