24 lines
473 B
Nix
24 lines
473 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.my.graphical.mangohud;
|
||
|
in {
|
||
|
options.my.graphical.mangohud = {
|
||
|
enable = lib.mkEnableOption null;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
programs.mangohud = {
|
||
|
enable = true;
|
||
|
enableSessionWide = true;
|
||
|
settings = {
|
||
|
no_display = true;
|
||
|
vsync = 0;
|
||
|
full = true;
|
||
|
output_folder = "${config.xdg.cacheHome}/mangohud";
|
||
|
toggle_hud = "Shift_R+BackSpace";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|