52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
username,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
nixpkgs.config.allowUnfreePredicate =
|
||
|
pkg:
|
||
|
builtins.elem (lib.getName pkg) [
|
||
|
"steam"
|
||
|
"steam-unwrapped"
|
||
|
"steam-original"
|
||
|
"steam-run"
|
||
|
];
|
||
|
environment = {
|
||
|
sessionVariables.MANGOHUD = 1;
|
||
|
systemPackages = [ pkgs.mangohud ];
|
||
|
};
|
||
|
hardware.steam-hardware.enable = true;
|
||
|
programs = {
|
||
|
gamemode.enable = true;
|
||
|
steam = {
|
||
|
enable = true;
|
||
|
remotePlay.openFirewall = true;
|
||
|
gamescopeSession.enable = true;
|
||
|
};
|
||
|
gamescope = {
|
||
|
enable = true;
|
||
|
capSysNice = true;
|
||
|
};
|
||
|
};
|
||
|
home-manager.users.${username}.xdg.configFile."MangoHud/MangoHud.conf".text =
|
||
|
with config.lib.stylix.scheme; ''
|
||
|
preset=1
|
||
|
text_color=${base00}
|
||
|
gpu_color=${green}
|
||
|
cpu_color=${green}
|
||
|
vram_color=${magenta}
|
||
|
ram_color=${magenta}
|
||
|
engine_color=${red}
|
||
|
io_color=${magenta}
|
||
|
frametime_color=${green}
|
||
|
background_color=${base05}
|
||
|
media_player_color=${base00}
|
||
|
wine_color=${red}
|
||
|
battery_color=${orange}
|
||
|
network_color=${red}
|
||
|
'';
|
||
|
}
|