Link: https://github.com/nix-community/stylix/pull/2041 Link: https://github.com/nix-community/stylix/pull/1976#discussion_r2539186937 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
21 lines
510 B
Nix
21 lines
510 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
|