6dcab51c42
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
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";
|
|
};
|
|
};
|
|
};
|
|
}
|