nixos-config/modules/gaming.nix

15 lines
277 B
Nix
Raw Normal View History

2022-01-14 03:37:20 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.sconfig.gaming;
in
{
options.sconfig.gaming.enable = lib.mkEnableOption "Enable Gaming";
config = lib.mkIf cfg.enable
{
programs.steam.enable = true;
environment.systemPackages = [ pkgs.steam-run ];
};
}