36 lines
567 B
Nix
36 lines
567 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options.gaming.enable = lib.mkEnableOption "Enable steam and related software";
|
|
|
|
config = lib.mkIf config.gaming.enable {
|
|
programs = {
|
|
gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
|
|
steam = {
|
|
enable = true;
|
|
gamescopeSession.enable = true;
|
|
};
|
|
|
|
gamemode.enable = true;
|
|
};
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
mangohud
|
|
protonup
|
|
protontricks
|
|
];
|
|
};
|
|
};
|
|
}
|