feat: enable steam and gate gaming options behind option

This commit is contained in:
oddlama 2023-09-10 12:40:26 +02:00
parent 69b0166a6b
commit 35e51873b8
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 41 additions and 3 deletions

View file

@ -1,6 +1,23 @@
{pkgs, ...}: {
{
lib,
pkgs,
...
}: let
inherit
(lib)
mkOption
types
;
in {
imports = [
./fonts.nix
./wayland.nix
./steam.nix
];
options.graphical.gaming.enable = mkOption {
description = "Enables gaming on this machine and will add a lot of gaming related packages and configuration.";
default = false;
type = types.bool;
};
}

View file

@ -0,0 +1,18 @@
{
lib,
config,
pkgs,
...
}: {
config = lib.mkIf config.graphical.gaming.enable {
programs.steam = {
enable = true;
package = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
# add packages here in case any game needs them...
];
};
};
};
}