refactor(nixGL): extract 'nixGL' wrapper

This commit is contained in:
2026-02-13 11:02:42 +01:00
parent 833d999027
commit 385fcb3ee1
7 changed files with 35 additions and 18 deletions

9
home/modules/lib.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, lib, ... }:
{
options.nixgl.wrap = lib.mkOption {
type = lib.types.functionTo lib.types.package;
default = if config.lib ? nixGL then config.lib.nixGL.wrap else lib.id;
readOnly = true;
};
}