Skip to content

Commit

Permalink
refactor: glxinfo -> mesa-demos
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Aug 31, 2024
1 parent 69d33ca commit f1ec9b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/nixos/gaming/steam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ in
gtk3-x11
harfbuzz
icu
glxinfo
inetutils
libthai
mono5
Expand Down
10 changes: 8 additions & 2 deletions modules/nixos/hardware/media/video.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ let
cfg = config.garden.system.video;
in
{
options.garden.system.video.enable = mkEnableOption "Does the device allow for graphical programs";
options.garden.system.video = {
enable = mkEnableOption "Does the device allow for graphical programs";

benchmarking.enable = mkEnableOption "Enable benchmarking tools";
};

config = mkIf cfg.enable {
hardware = {
Expand All @@ -22,6 +26,8 @@ in
};

# benchmarking tools
environment.systemPackages = builtins.attrValues { inherit (pkgs) glxinfo glmark2; };
environment.systemPackages = mkIf cfg.benchmarking.enable (
builtins.attrValues { inherit (pkgs) mesa-demos glmark2; }
);
};
}

0 comments on commit f1ec9b4

Please sign in to comment.