1 { config, lib, pkgs, ... }:
4 cfg = config.hardware.intel-gpu-tools;
8 hardware.intel-gpu-tools = {
9 enable = lib.mkEnableOption "a setcap wrapper for intel-gpu-tools";
13 config = lib.mkIf cfg.enable {
14 security.wrappers.intel_gpu_top = {
17 source = "${pkgs.intel-gpu-tools}/bin/intel_gpu_top";
18 capabilities = "cap_perfmon+ep";
23 maintainers = with lib.maintainers; [ kira-bruneau ];