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

6 lines
89 B
Nix

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