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

6 lines
89 B
Nix

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