1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-18 09:19:39 +01:00
nixos/modules/steam.nix

24 lines
405 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; {
options.elss.steam.enable = mkEnableOption "Enable steam";
config = let
cfg = config.elss.steam;
in
mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
gamescopeSession.enable = true;
};
};
}