marleyos/modules/home/nixgl/default.nix
punkfairie d185e489cf
feat(home): NixGL working!!
Wezterm hates it for some reason tho :(
2024-11-22 21:37:45 -08:00

21 lines
304 B
Nix

{
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";
};
};
}