mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 04:52:56 +00:00
d021baa1bb
required because they don't share all attributes
20 lines
455 B
Nix
20 lines
455 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" ];
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
steam
|
|
|
|
# Enable terminal interaction
|
|
steamPackages.steamcmd
|
|
steam-tui
|
|
|
|
];
|
|
};
|
|
|
|
}
|