{ lib, config, ... }: let inherit (lib) mkOption; inherit (lib.types) types; in { imports = [ ./garage ./mastodon ./pixelfed ./peertube ]; options = { fediversity = { domain = mkOption { type = types.str; description = '' root domain for the Fediversity services For instance, if this option is set to `foo.example.com`, then Pixelfed might be under `pixelfed.foo.example.com`. ''; }; temp = mkOption { description = "options that are only used while developing; should be removed eventually"; default = { }; type = types.submodule { options = { cores = mkOption { description = "number of cores; should be obtained from NixOps4"; type = types.int; }; }; }; }; }; }; config = { ## FIXME: This should clearly go somewhere else; and we should have a ## `staging` vs. `production` setting somewhere. security.acme = { acceptTerms = true; defaults.email = "nicolas.jeannerod+fediversity@moduscreate.com"; # defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory"; }; }; }