gaming: fix repeating code
This commit is contained in:
parent
80452cb292
commit
7c4198a58a
1 changed files with 13 additions and 15 deletions
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.modules.gaming;
|
cfg = config.modules.gaming;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
modules.gaming = {
|
modules.gaming = {
|
||||||
enable = lib.mkEnableOption "Enable the gaming module";
|
enable = lib.mkEnableOption "Enable the gaming module";
|
||||||
|
@ -15,18 +13,18 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.steam = {
|
programs = {
|
||||||
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = with pkgs; steam.override { extraPkgs = pkgs: [ attr ]; };
|
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
|
coolercontrol = {
|
||||||
programs.coolercontrol = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
nvidiaSupport = true;
|
nvidiaSupport = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
hardware.keyboard.qmk.enable = true;
|
hardware.keyboard.qmk.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue