nix-conf/modules/steam/default.nix

20 lines
407 B
Nix
Raw Normal View History

2023-12-30 23:39:33 +01:00
{ 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;
};
2023-10-02 21:27:53 +02:00
2023-12-29 16:43:40 +01:00
programs.steam.gamescopeSession.enable = true;
};
2023-05-19 20:53:02 +02:00
}
2023-12-29 16:43:40 +01:00