nix-conf/modules/steam/default.nix

24 lines
421 B
Nix
Raw Normal View History

2023-12-29 16:43:40 +01:00
{ config, lib, pkgs, ... }:
2023-05-19 20:53:02 +02:00
2023-12-29 16:43:40 +01:00
let
cfg = config.jopejoe1.steam;
in
2023-05-19 20:53:02 +02:00
{
2023-12-29 16:43:40 +01:00
options.jopejoe1.steam = {
enable = lib.mkEnableOption "Enable Steam";
2023-05-19 20:53:02 +02:00
};
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