[Programs/Nvtop] refactor to intelligently enable the required backends

This commit is contained in:
Antoine Viallon 2024-06-01 17:34:39 +02:00
parent 5fa9147e02
commit d9ea216ea8
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
5 changed files with 23 additions and 9 deletions

View file

@ -17,7 +17,10 @@ in
];
config = mkIf cfg.enable {
aviallon.programs.nvtop.enable = true;
aviallon.programs.nvtop = {
enable = true;
backend = [ "intel" ];
};
boot.initrd.kernelModules = [ "i915" ];
hardware.opengl = {