desktop: move gaming to its own module

This commit is contained in:
Anthony Rodriguez 2024-09-25 14:28:33 +02:00
parent 8fad48e2d8
commit aba2cf0794
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 18 additions and 17 deletions

View file

@ -1,6 +1,5 @@
_: {
imports = [
../common
./gaming
];
}

View file

@ -1,15 +0,0 @@
{pkgs, ...}: {
home.packages = with pkgs; [
protonup-qt
bottles
lutris
path-of-building
# steamtinkerlaunch dependencies
unzip
xdotool
xorg.xwininfo
yad
r2modman
];
programs.mangohud.enable = true;
}

View file

@ -2,6 +2,7 @@
lib,
config,
pkgs,
username,
...
}: let
cfg = config.modules.gaming;
@ -18,7 +19,6 @@ in {
enable = true;
gamescopeSession.enable = true;
};
gamemode.enable = true;
coolercontrol = {
enable = true;
@ -31,5 +31,22 @@ in {
via
];
services.udev.packages = [pkgs.via];
home-manager.users.${username} = {
home.packages = with pkgs; [
protonup-qt
bottles
lutris
path-of-building
r2modman
# steamtinkerlaunch dependencies
unzip
xdotool
xorg.xwininfo
yad
];
programs.mangohud.enable = true;
};
};
}