dotfiles/modules/nixos/apps/steam/default.nix

29 lines
483 B
Nix
Raw Normal View History

2023-03-20 01:10:43 +00:00
{
config,
pkgs,
lib,
2023-03-20 01:10:43 +00:00
...
}: let
2023-03-20 01:10:43 +00:00
cfg = config.aa.apps.steam;
in {
options.aa.apps.steam = {
enable = lib.options.mkEnableOption "steam";
2023-03-20 01:10:43 +00:00
};
config = lib.mkIf cfg.enable {
2023-03-20 01:10:43 +00:00
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
2023-03-20 01:10:43 +00:00
};
hardware.graphics = {
enable = true;
enable32Bit = true;
2023-08-06 17:00:47 +00:00
};
2023-03-20 01:10:43 +00:00
};
}