32 lines
833 B
Nix
Raw Normal View History

2022-05-22 19:43:46 -04:00
{ config, pkgs, lib, ... }: {
2022-04-25 21:54:53 -04:00
2022-12-21 14:18:03 -07:00
options.gaming.steam.enable = lib.mkEnableOption "Steam game launcher.";
2022-04-25 21:54:53 -04:00
2022-12-21 14:18:03 -07:00
config = lib.mkIf (config.gaming.steam.enable && pkgs.stdenv.isLinux) {
2022-04-25 21:54:53 -04:00
hardware.steam-hardware.enable = true;
2022-10-29 14:42:37 -04:00
unfreePackages = [ "steam" "steam-original" "steamcmd" "steam-run" ];
2022-05-28 10:34:00 -04:00
2023-03-05 23:03:34 -05:00
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
environment.systemPackages = with pkgs; [
2022-05-28 10:34:00 -04:00
# Enable terminal interaction
steamPackages.steamcmd
steam-tui
# Allow downloading of GE-Proton and other versions
protonup-qt
2022-05-28 10:34:00 -04:00
];
2023-03-05 23:03:34 -05:00
# Seems like NetworkManager can help speed up Steam launch
# https://www.reddit.com/r/archlinux/comments/qguhco/steam_startup_time_arch_1451_seconds_fedora_34/hi8opet/
networking.networkmanager.enable = true;
2022-04-25 21:54:53 -04:00
};
}