unwrap mangohud and just put config in .config

This commit is contained in:
2025-08-25 03:56:23 +02:00
parent e9746eaa4c
commit 8a108fc3b4
+4 -7
View File
@@ -7,19 +7,16 @@ let
show_fps_limit show_fps_limit
''; '';
mangohudWrapped = (pkgs.runCommand
"mangohud"
{ nativeBuildInputs = [ pkgs.makeWrapper ]; }
"makeWrapper ${pkgs.mangohud}/bin/mangohud $out/bin/mangohud --set MANGOHUD_CONFIGFILE ${mangohudConfig}"
);
in { in {
options.lumpiastyHome.gaming = lib.mkEnableOption "Gaming account"; options.lumpiastyHome.gaming = lib.mkEnableOption "Gaming account";
config = lib.mkIf config.lumpiastyHome.gaming { config = lib.mkIf config.lumpiastyHome.gaming {
xdg.configFile."MangoHud/MangoHud.conf".source = mangohudConfig;
programs.lutris = { programs.lutris = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
mangohudWrapped mangohud
gamescope gamescope
]; ];
}; };
@@ -30,7 +27,7 @@ in {
]; ];
})) }))
(steam.override { (steam.override {
extraPkgs = pkgs': with pkgs'; [ mangohudWrapped gamescope ]; extraPkgs = pkgs': with pkgs'; [ mangohud gamescope ];
}) })
]; ];
}; };