feat: add mangohud module
This commit is contained in:
parent
f46004e976
commit
30451c48cd
@ -65,8 +65,9 @@ in
|
|||||||
# Home-manager
|
# Home-manager
|
||||||
home-manager.users.${defaultUser} = {
|
home-manager.users.${defaultUser} = {
|
||||||
ataraxia.defaults.role = "desktop";
|
ataraxia.defaults.role = "desktop";
|
||||||
ataraxia.theme.catppuccin.enable = true;
|
ataraxia.programs.mangohud.enable = true;
|
||||||
ataraxia.services.modprobed-db.enable = true;
|
ataraxia.services.modprobed-db.enable = true;
|
||||||
|
ataraxia.theme.catppuccin.enable = true;
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
# TODO: Remove after flickering is fixed
|
# TODO: Remove after flickering is fixed
|
||||||
|
57
modules/home/applications/games/mangohud.nix
Normal file
57
modules/home/applications/games/mangohud.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.ataraxia.programs.mangohud;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.ataraxia.programs.mangohud = {
|
||||||
|
enable = mkEnableOption "Enable mangohud program";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [ mangohud ];
|
||||||
|
xdg.configFile."MangoHud/MangoHud.conf".text = ''
|
||||||
|
fps_limit=60
|
||||||
|
toggle_fps_limit=F1
|
||||||
|
legacy_layout=false
|
||||||
|
gpu_stats
|
||||||
|
gpu_temp
|
||||||
|
gpu_text=GPU
|
||||||
|
cpu_stats
|
||||||
|
cpu_temp
|
||||||
|
cpu_color=2e97cb
|
||||||
|
cpu_text=CPU
|
||||||
|
io_color=a491d3
|
||||||
|
vram
|
||||||
|
vram_color=ad64c1
|
||||||
|
ram
|
||||||
|
ram_color=c26693
|
||||||
|
fps
|
||||||
|
engine_version
|
||||||
|
engine_color=eb5b5b
|
||||||
|
gpu_color=2e9762
|
||||||
|
wine
|
||||||
|
wine_color=eb5b5b
|
||||||
|
frame_timing=1
|
||||||
|
frametime_color=00ff00
|
||||||
|
resolution
|
||||||
|
vkbasalt
|
||||||
|
media_player_color=ffffff
|
||||||
|
time
|
||||||
|
background_alpha=0.4
|
||||||
|
font_size=24
|
||||||
|
background_color=020202
|
||||||
|
position=top-left
|
||||||
|
text_color=ffffff
|
||||||
|
toggle_hud=Shift_R+F12
|
||||||
|
toggle_logging=Shift_L+F2
|
||||||
|
output_folder=${config.home.homeDirectory}
|
||||||
|
media_player_name=spotify
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user