feat(gaming): cleaning up gaming related pkgs
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
])
|
||||
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user