mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-30 02:19:18 -05:00
29 lines
649 B
Nix
29 lines
649 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config =
|
|
lib.mkIf (
|
|
config.ar.apps.steam.enable
|
|
|| config.ar.desktop.steam.enable
|
|
) {
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
programs = {
|
|
gamescope.enable = config.ar.desktop.steam.enable;
|
|
|
|
steam = {
|
|
enable = true;
|
|
dedicatedServer.openFirewall = true;
|
|
extest.enable = true;
|
|
extraCompatPackages = with pkgs; [proton-ge-bin];
|
|
gamescopeSession.enable = config.ar.desktop.steam.enable;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
remotePlay.openFirewall = true;
|
|
};
|
|
};
|
|
};
|
|
}
|