feat(gaming): cleaning up gaming related pkgs

This commit is contained in:
2025-10-11 16:44:54 +02:00
parent 6b7ca2b194
commit 57cb48a11c
3 changed files with 26 additions and 12 deletions

View File

@@ -3,8 +3,8 @@
boot = {
kernel = {
variant = "latest";
hardware = ["amd"];
extraKernelParams = [];
hardware = [ "amd" ];
extraKernelParams = [ ];
amdOverdrive.enable = true;
};
loader = {
@@ -22,7 +22,7 @@
};
graphics = {
enable = true;
vendors = ["amd"];
vendors = [ "amd" ];
};
logitech = {
enable = true;
@@ -73,7 +73,7 @@
};
};
gamescope = {
enable = true;
enable = false;
};
gimp = {
enable = true;

View File

@@ -3,16 +3,17 @@
config,
lib,
...
}: let
inherit
(lib)
}:
let
inherit (lib)
mkIf
mkOption
mkMerge
types
;
cfg = config.nixos.programs.pkgs;
in {
in
{
options = {
nixos.programs.pkgs = {
enable = mkOption {
@@ -50,7 +51,8 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs;
environment.systemPackages =
with pkgs;
mkMerge [
[
pciutils
@@ -95,9 +97,6 @@ in {
])
(mkIf cfg.desktop.enable [
protonup
winetricks
wine
geekbench
unigine-heaven
])

View File

@@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}:
let
@@ -17,6 +18,20 @@ in
enable = true;
gamescopeSession.enable = true;
};
gamescope = {
enable = true;
capSysNice = true;
args = [
"--rt"
"--expose-wayland"
];
};
};
environment.systemPackages = with pkgs; [
protonup
wine
winetricks
wine-wayland
];
};
}