Link: https://github.com/nix-community/stylix/pull/1700 Reviewed-by: awwpotato <awwpotato@voidq.com>
24 lines
515 B
Nix
24 lines
515 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
}:
|
|
/**
|
|
Creates a minimal configuration to extract the `stylix.testbed.enable` option
|
|
value.
|
|
|
|
This is for performance reasons. Primarily, to avoid fully evaluating testbed
|
|
system configurations to determine flake outputs.
|
|
E.g., when running `nix flake show`.
|
|
*/
|
|
module:
|
|
let
|
|
minimal = lib.evalModules {
|
|
modules = [
|
|
module
|
|
./modules/enable.nix
|
|
{ _module.check = false; }
|
|
{ _module.args = { inherit pkgs; }; }
|
|
];
|
|
};
|
|
in
|
|
minimal.config.stylix.testbed.enable
|