Add MangoHud module and enable it on hosts
Introduce a new `mangohud.nix` module with sensible defaults, import it in `modules/home/default.nix`, and add a `mangohud.enable` flag to the host configurations (enabled for desktop and laptop, disabled for the default host). Comment out the default Gamescope arguments in `modules/core/steam.nix` and add a reference command line that includes the MangoHud flag.
This commit is contained in:
+10
-8
@@ -18,10 +18,10 @@
|
||||
dedicatedServer.openFirewall = true;
|
||||
gamescopeSession = lib.mkIf config.gamescope.enable {
|
||||
enable = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
# args = [
|
||||
# "--rt"
|
||||
# "--expose-wayland"
|
||||
# ];
|
||||
};
|
||||
extraCompatPackages = [pkgs.proton-ge-bin];
|
||||
};
|
||||
@@ -29,10 +29,10 @@
|
||||
gamescope = lib.mkIf config.gamescope.enable {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
# args = [
|
||||
# # "--rt"
|
||||
# # "--expose-wayland"
|
||||
# ];
|
||||
};
|
||||
|
||||
gamemode = lib.mkIf config.gamemode.enable {
|
||||
@@ -41,3 +41,5 @@
|
||||
};
|
||||
};
|
||||
}
|
||||
# gamescope -W 1920 -H 1080 -r 144 --force-grab-cursor -f --mangoapp --rt --expose-wayland --
|
||||
|
||||
|
||||
Reference in New Issue
Block a user