refactor(nixGL): extract 'nixGL' wrapper
This commit is contained in:
9
home/modules/lib.nix
Normal file
9
home/modules/lib.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user