diff options
| author | seth <[email protected]> | 2023-04-21 07:53:17 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-21 07:53:17 -0400 |
| commit | b3dc31fac86e542f788158cf80476c7194d69361 (patch) | |
| tree | d968e345da71cc77994cebe7ed9222360bd758d4 /users/seth/programs/mangohud.nix | |
| parent | 3066f766ece62acd9b9897082dba28be87889dc1 (diff) | |
bit of cleanup
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 + ''; + }; }; } |
