1
1
Fork 0
nixos/options/custom/programs/steam.nix
Myned ab485dec35
nix: format with alejandra
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:50:53 -05:00

34 lines
766 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.custom.programs.steam;
in {
# https://wiki.nixos.org/wiki/Steam
# https://store.steampowered.com
options.custom.programs.steam = {
enable = mkOption {default = false;};
extest = mkOption {default = false;};
};
config = mkIf cfg.enable {
programs.steam =
{
enable = true;
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;};
};
}