diff --git a/hm_modules/mangohud.nix b/hm_modules/mangohud.nix index 3b771bf..c1ab20a 100644 --- a/hm_modules/mangohud.nix +++ b/hm_modules/mangohud.nix @@ -1,40 +1,42 @@ -{ +{ pkgs, ... }: +let strPalette = pkgs.lib.rice.palette.toRgbShortHex pkgs.rice.colorPalette; +in { programs.mangohud = { enable = true; enableSessionWide = true; - settings = { - toggle_fps_limit = "F1"; - legacy_layout = false; - gpu_stats = true; - gpu_temp = true; - gpu_text = "GPU"; - cpu_stats = true; - cpu_temp = true; - cpu_color = "2e97cb"; - cpu_text = "CPU"; - io_color = "a491d3"; - vram = true; - vram_color = "ad64c1"; - ram = true; - ram_color = "c26693"; - fps = true; - engine_color = "eb5b5b"; - gpu_color = "2e9762"; - wine_color = "eb5b5b"; - frame_timing = 1; - frametime_color = "00ff00"; - media_player_color = "ffffff"; - background_alpha = 0.4; - font_size = 24; - background_color = "020202"; - position = "top-left"; - text_color = "ffffff"; - round_corners = 0; - toggle_hud = "Shift_L+F12"; - toggle_logging = "Shift_L+F2"; - upload_log = "F5"; - output_folder = "/home/bertof"; - media_player_name = "spotify"; - }; }; + xdg.configFile."MangoHud/MangoHud.conf".text = '' + toggle_fps_limit=F1 + legacy_layout=false + gpu_stats + gpu_temp + gpu_text=GPU + cpu_stats + cpu_temp + cpu_color=${strPalette.normal.blue} + cpu_text=CPU + io_color=${strPalette.normal.white} + vram + vram_color=${strPalette.dark.magenta} + ram + ram_color=${strPalette.normal.magenta} + fps + engine_color=${strPalette.normal.red} + gpu_color=${strPalette.normal.green} + wine_color=${strPalette.normal.yellow} + frame_timing=1 + frametime_color=${strPalette.normal.green} + media_player_color=${strPalette.normal.white} + background_alpha=0.4 + font_size=24 + background_color=020202 + position=top-left + text_color=ffffff + round_corners=0 + toggle_hud=Shift_L+F12 + toggle_logging=Shift_L+F2 + upload_log=F5 + output_folder=/home/bertof + media_player_name=spotify + ''; } diff --git a/odin/common_configuration.nix b/odin/common_configuration.nix index 0760f9e..d581efa 100644 --- a/odin/common_configuration.nix +++ b/odin/common_configuration.nix @@ -202,6 +202,8 @@ with lib; { recursiveUpdate common { subvolume = "/home/bertof/Documenti"; }; bertof_games_ssd = recursiveUpdate common { subvolume = "/home/bertof/Giochi/SSD"; }; + bertof_games_sata = + recursiveUpdate common { subvolume = "/home/bertof/Giochi/SATA"; }; # bertof_games_hdd = recursiveUpdate common { subvolume = "/home/bertof/Giochi/HDD"; }; bertof_git = recursiveUpdate common { subvolume = "/home/bertof/Documenti/Git"; };