summaryrefslogtreecommitdiff
path: root/users/seth/programs/mangohud.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-17 13:46:41 -0400
committerseth <[email protected]>2023-08-17 13:55:47 -0400
commit6ca79241fe6a45ca4468e4c54c778df116c0b14f (patch)
treeca6bbd7eaec86125c0e59a2553922ea4ef4a2b9b /users/seth/programs/mangohud.nix
parent76127171e4ed7abcb2a14039f358e117aac20181 (diff)
users/seth: make everything a module
Diffstat (limited to 'users/seth/programs/mangohud.nix')
-rw-r--r--users/seth/programs/mangohud.nix36
1 files changed, 19 insertions, 17 deletions
diff --git a/users/seth/programs/mangohud.nix b/users/seth/programs/mangohud.nix
index 6d325b2..1ab8bb0 100644
--- a/users/seth/programs/mangohud.nix
+++ b/users/seth/programs/mangohud.nix
@@ -1,27 +1,29 @@
{
config,
lib,
- pkgs,
...
}: let
- cfg = config.desktop;
- inherit (lib) mkIf;
+ cfg = config.getchoo.programs.mangohud;
+ inherit (lib) mkEnableOption mkIf;
in {
- config = mkIf cfg.enable {
- home.packages = with pkgs; [mangohud];
+ options.getchoo.programs.mangohud.enable =
+ mkEnableOption "mangohud"
+ // {default = config.getchoo.desktop.enable;};
- 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
- '';
+ config = mkIf cfg.enable {
+ programs.mangohud = {
+ enable = true;
+ settings = {
+ legacy_layout = false;
+ cpu_stats = true;
+ cpu_temp = true;
+ gpu_stats = true;
+ gpu_temp = true;
+ fps = true;
+ frametime = true;
+ media_player = true;
+ media_player_name = "spotify";
+ };
};
};
}