2024-11-22 21:37:45 -08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
...
|
2025-01-13 21:05:10 -08:00
|
|
|
}: let
|
2024-11-22 21:37:45 -08:00
|
|
|
cfg = config.marleyos.nixGL;
|
2025-01-13 21:05:10 -08:00
|
|
|
in {
|
|
|
|
options.marleyos.nixGL.enable = lib.mkEnableOption "nixGL";
|
2024-11-22 21:37:45 -08:00
|
|
|
|
2025-01-13 21:05:10 -08:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-11-22 21:37:45 -08:00
|
|
|
nixGL = {
|
|
|
|
inherit (inputs.nixgl) packages;
|
|
|
|
defaultWrapper = "nvidia";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|