Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

allow other schemas just like in namespaces

+7 -8
+7 -8
modules/options.nix
··· 14 14 config 15 15 ; 16 16 }; 17 - baseMod = lib.mkOption { 18 - type = lib.types.deferredModule; 17 + schemaOption = lib.mkOption { 18 + description = "freeform deferred modules per entity kind"; 19 19 default = { }; 20 + type = lib.types.submodule { 21 + freeformType = lib.types.lazyAttrsOf lib.types.deferredModule; 22 + }; 20 23 }; 21 24 in 22 25 { 23 26 options.den.hosts = types.hostsOption; 24 27 options.den.homes = types.homesOption; 25 - options.den.schema = { 26 - conf = baseMod; 27 - host = baseMod; 28 - user = baseMod; 29 - home = baseMod; 30 - }; 28 + options.den.schema = schemaOption; 31 29 config.den.schema = { 30 + conf = { }; 32 31 host.imports = [ den.schema.conf ]; 33 32 user.imports = [ den.schema.conf ]; 34 33 home.imports = [ den.schema.conf ];