2024-04-03 21:40:42 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
2023-05-19 20:53:02 +02:00
|
|
|
|
2023-12-30 23:39:33 +01:00
|
|
|
let cfg = config.jopejoe1.steam;
|
|
|
|
in {
|
|
|
|
options.jopejoe1.steam = { enable = lib.mkEnableOption "Enable Steam"; };
|
2023-09-27 19:42:04 +02:00
|
|
|
|
2023-12-29 16:43:40 +01:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
2024-04-03 21:39:11 +02:00
|
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
extest.enable = true;
|
|
|
|
extraCompatPackages = with pkgs; [
|
|
|
|
proton-ge-bin
|
|
|
|
];
|
2023-12-29 16:43:40 +01:00
|
|
|
};
|
|
|
|
};
|
2023-05-19 20:53:02 +02:00
|
|
|
}
|
2023-12-29 16:43:40 +01:00
|
|
|
|