mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
15 lines
277 B
Nix
15 lines
277 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|