diff options
Diffstat (limited to 'users/seth/programs/mangohud.nix')
| -rw-r--r-- | users/seth/programs/mangohud.nix | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/users/seth/programs/mangohud.nix b/users/seth/programs/mangohud.nix index d65d899..6d325b2 100644 --- a/users/seth/programs/mangohud.nix +++ b/users/seth/programs/mangohud.nix @@ -1,17 +1,27 @@ -{pkgs, ...}: { - home.packages = with pkgs; [mangohud]; +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.desktop; + inherit (lib) mkIf; +in { + config = mkIf cfg.enable { + home.packages = with pkgs; [mangohud]; - xdg.configFile."MangoHud/MangoHud.conf" = { - text = '' - legacy_layout=false - cpu_stats - cpu_temp - gpu_stats - gpu_temp - fps - frametime - media_player - media_player_name = spotify - ''; + xdg.configFile."MangoHud/MangoHud.conf" = { + text = '' + legacy_layout=false + cpu_stats + cpu_temp + gpu_stats + gpu_temp + fps + frametime + media_player + media_player_name = spotify + ''; + }; }; } |
