create gaming module

This commit is contained in:
Sean Buckley 2022-01-13 22:37:20 -05:00
parent 5adc4a6147
commit 55ba37f615
3 changed files with 15 additions and 3 deletions

View file

@ -7,6 +7,7 @@
sconfig = { sconfig = {
gnome = true; gnome = true;
profile = "desktop"; profile = "desktop";
gaming = true;
}; };
environment.etc = environment.etc =

14
modules/gaming.nix Normal file
View file

@ -0,0 +1,14 @@
{ 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 ];
};
}

View file

@ -25,7 +25,6 @@ with lib;
pavucontrol pavucontrol
pulseeffects-legacy pulseeffects-legacy
qemu_full qemu_full
steam-run
tdesktop tdesktop
youtube-dl youtube-dl
@ -104,8 +103,6 @@ with lib;
{ key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; } { key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; }
]; ];
programs.steam.enable = true;
virtualisation.docker = { enable = true; enableOnBoot = false; }; virtualisation.docker = { enable = true; enableOnBoot = false; };
boot.kernelPackages = pkgs.linuxPackages_5_15; boot.kernelPackages = pkgs.linuxPackages_5_15;