2022-05-22 23:43:46 +00:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2022-04-26 01:54:53 +00:00
|
|
|
|
2022-05-22 23:43:46 +00:00
|
|
|
options.gaming.steam = lib.mkEnableOption "Steam";
|
2022-04-26 01:54:53 +00:00
|
|
|
|
2022-05-22 23:43:46 +00:00
|
|
|
config = lib.mkIf config.gaming.steam {
|
2022-04-26 01:54:53 +00:00
|
|
|
hardware.steam-hardware.enable = true;
|
2022-06-05 01:08:09 +00:00
|
|
|
unfreePackages = [ "steam" "steam-original" "steamcmd" ];
|
2022-05-28 14:34:00 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
|
|
steam
|
|
|
|
|
|
|
|
# Enable terminal interaction
|
|
|
|
steamPackages.steamcmd
|
|
|
|
steam-tui
|
|
|
|
|
|
|
|
];
|
2022-04-26 01:54:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|