Add mangohud

This commit is contained in:
Tristan D. 2024-11-25 17:14:23 +01:00
parent 3c2c94f86f
commit 1165326ad1
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4
3 changed files with 27 additions and 1 deletions

View file

@ -1,8 +1,31 @@
{ config
, pkgs
, inputs
, lib
, ...
}: {
programs.mangohud = {
enable = true;
settings = {
# need to override the stylix font size here
font_size = lib.mkForce 32;
font_size_text = lib.mkForce 32;
font_scale = lib.mkForce 1;
position = "bottom-left";
horizontal_stretch = 0;
hud_no_margin = 1;
hud_compact = 1;
horizontal = 1;
cpu_mhz = 1;
gpu_core_clock = 1;
ram = 1;
swap = 1;
frametime = 0;
frame_timing = 0;
};
};
programs.mpv = {
enable = true;
package = pkgs.mpv;

View file

@ -10,6 +10,9 @@
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extraPackages = with pkgs; [
mangohud
];
extraCompatPackages = with pkgs; [
proton-ge-custom
];

View file

@ -5,7 +5,7 @@
}: {
networking = {
firewall.checkReversePath = lib.mkForce false;
firewall.trustedInterfaces = ["tailscale0"];
firewall.trustedInterfaces = [ "tailscale0" ];
networkmanager.enable = true;
networkmanager.dispatcherScripts = [