mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
28 lines
611 B
Nix
28 lines
611 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
options.gaming.steam.enable = lib.mkEnableOption "Steam game launcher.";
|
|
|
|
config = lib.mkIf (config.gaming.steam.enable && pkgs.stdenv.isLinux) {
|
|
hardware.steam-hardware.enable = true;
|
|
unfreePackages = [ "steam" "steam-original" "steamcmd" "steam-run" ];
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Enable terminal interaction
|
|
steamPackages.steamcmd
|
|
steam-tui
|
|
|
|
# Allow downloading of GE-Proton and other versions
|
|
protonup-qt
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|