unwrap mangohud and just put config in .config
This commit is contained in:
@@ -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 ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user