nichts/modules/gui/steam.nix

26 lines
508 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
2024-07-22 22:46:11 +02:00
pkgs,
2024-05-22 14:29:45 +02:00
...
}:
with lib; let
2024-04-17 15:56:45 +02:00
cfg = config.modules.programs.steam;
in {
options.modules.programs.steam = {
enable = mkEnableOption "steam";
gamescope = mkEnableOption "gamescope";
2024-04-17 15:56:45 +02:00
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
gamescopeSession.enable = mkIf cfg.gamescope true;
2024-08-07 00:12:28 +02:00
extraCompatPackages = with pkgs; [proton-ge-bin];
2024-04-17 15:56:45 +02:00
};
2024-08-09 16:09:22 +02:00
# See
# https://wiki.nixos.org/wiki/GameMode
2024-06-01 19:31:05 +02:00
programs.gamemode.enable = true;
2024-04-17 15:56:45 +02:00
};
}