core/lib/tests/modules/define-attrsOfSub-foo-if-enable.nix
2024-06-30 09:16:52 +01:00

6 lines
89 B
Nix

{ config, lib, ... }:
{
attrsOfSub.foo = lib.mkIf config.enable { enable = true; };
}