[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

@ -27,7 +27,9 @@ in {
config = mkIf cfg.enable {
hardware.opengl.driSupport32Bit = true;
aviallon.programs.nvtop.enable = true;
aviallon.programs.nvtop = {
enable = true;
};
aviallon.hardware.nvidia.useProprietary = mkForce ( cfg.variant == "proprietary" );
};