mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
30 lines
638 B
Nix
30 lines
638 B
Nix
|
{
|
||
|
description = "Nix shell for GPU tools";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs =
|
||
|
{ self
|
||
|
, nixpkgs
|
||
|
, 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
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
}
|