···2525 || head srvMatch == srv # Include sections for the service being configured
2626 then v
2727 # Enable Web links and integrations between services.
2828- else if tail srvMatch == [ null ] && elem (head srvMatch) cfg.services
2828+ else if tail srvMatch == [ null ] && cfg.${head srvMatch}.enable
2929 then {
3030 inherit (v) origin;
3131 # mansrht crashes without it
···119119 sourcehut - git hosting, continuous integration, mailing list, ticket tracking, wiki
120120 and account management services
121121 '');
122122-123123- services = mkOption {
124124- type = with types; listOf (enum
125125- [ "builds" "git" "hg" "hub" "lists" "man" "meta" "pages" "paste" "todo" ]);
126126- defaultText = "locally enabled services";
127127- description = lib.mdDoc ''
128128- Services that may be displayed as links in the title bar of the Web interface.
129129- '';
130130- };
131122132123 listenAddress = mkOption {
133124 type = types.str;
···13701361 (mkRemovedOptionModule [ "services" "sourcehut" "dispatch" ] ''
13711362 dispatch is deprecated. See https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/
13721363 for more information.
13641364+ '')
13651365+13661366+ (mkRemovedOptionModule [ "services" "sourcehut" "services"] ''
13671367+ This option was removed in favor of individual <service>.enable flags.
13731368 '')
13741369 ];
13751370