32 lines
560 B
Nix
32 lines
560 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.wyrdgard;
|
|
let
|
|
cfg = config.wyrdgard.apps.steam;
|
|
in
|
|
{
|
|
options.wyrdgard.apps.steam = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable support for Steam.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
steam
|
|
protontricks
|
|
];
|
|
};
|
|
}
|