marleyos/modules/home/nixgl/default.nix

22 lines
304 B
Nix
Raw Normal View History

{
lib,
config,
inputs,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.nixGL;
in
{
options.marleyos.nixGL.enable = mkEnableOption "nixGL";
config = mkIf cfg.enable {
nixGL = {
inherit (inputs.nixgl) packages;
defaultWrapper = "nvidia";
};
};
}