2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-09 00:22:14 +00:00
|
|
|
cfg = config.custom.programs.steam;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
2024-09-09 00:22:14 +00:00
|
|
|
# https://wiki.nixos.org/wiki/Steam
|
|
|
|
# https://store.steampowered.com
|
|
|
|
options.custom.programs.steam = {
|
2024-09-13 01:50:53 +00:00
|
|
|
enable = mkOption {default = false;};
|
|
|
|
extest = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-09-13 01:50:53 +00:00
|
|
|
programs.steam =
|
|
|
|
{
|
2024-09-09 00:22:14 +00:00
|
|
|
enable = true;
|
2024-09-13 01:50:53 +00:00
|
|
|
extest.enable = cfg.extest; # Work around invisible cursor on Wayland
|
|
|
|
extraCompatPackages = [pkgs.proton-ge-bin];
|
|
|
|
|
|
|
|
gamescopeSession = {
|
|
|
|
enable = true;
|
|
|
|
# args = [
|
|
|
|
# "--backend sdl"
|
|
|
|
# "--fullscreen"
|
|
|
|
# ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
// optionalAttrs (versionAtLeast version "24.11") {protontricks.enable = true;};
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
}
|