nix-config/shells/gpu/flake.nix

29 lines
627 B
Nix
Raw Permalink Normal View History

2023-09-28 15:28:32 +00:00
{
description = "Nix shell for GPU tools";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
2023-10-16 18:46:06 +00:00
{ nixpkgs
2023-09-28 15:28:32 +00:00
, flake-utils
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
clinfo # Terminal OpenCL info
libva-utils # Terminal VAAPI info
python310Packages.gpustat # Terminal GPU info
vdpauinfo # Terminal VDPAU info
];
};
});
}