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
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
|
|
steam
|
|
|
|
|
|
|
|
# Enable terminal interaction
|
|
|
|
steamPackages.steamcmd
|
|
|
|
steam-tui
|
|
|
|
|
|
|
|
];
|
2022-04-25 21:54:53 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|