depot/third_party/nixpkgs/nixos/modules/hardware/video/intel-gpu-tools.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

25 lines
518 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.hardware.intel-gpu-tools;
in
{
options = {
hardware.intel-gpu-tools = {
enable = lib.mkEnableOption "a setcap wrapper for intel-gpu-tools";
};
};
config = lib.mkIf cfg.enable {
security.wrappers.intel_gpu_top = {
owner = "root";
group = "root";
source = "${pkgs.intel-gpu-tools}/bin/intel_gpu_top";
capabilities = "cap_perfmon+ep";
};
};
meta = {
maintainers = with lib.maintainers; [ kira-bruneau ];
};
}