From 12eaeeb4d8b0d0c24c19dc4aff1b86d8334e78af Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 4 Aug 2021 13:35:18 +0300 Subject: Added some options to the module, they don't work yet tho --- flake.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/flake.nix b/flake.nix index d074ab1..ada99e8 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,32 @@ example = "https://indieauth.com/auth"; description = "Authorization endpoint to use to authenticate the user. You can use the default if you are unsure."; }; + mediaEndpoint = mkOption { + type = types.nullOr types.str; + description = "The URL of a media endpoint to announce when asked by a Micropub client. Strongly recommended if you plan to upload images."; + }; + microsubServer = mkOption { + type = types.nullOr types.str; + example = "https://aperture.p3k.io/microsub/69420"; + description = '' + The URL of your Microsub server, which saves feeds for you + and allows you to browse Web content from one place. Try + https://aperture.p3k.io/ if you don't have one yet! + ''; + }; + webmentionEndpoint = mkOption { + type = types.nullOr types.str; + example = "https://webmention.io/example.com/webmention"; + description = '' + The URL of your webmention endpoint, which allows you to + receive notifications about your site's content being featured + or interacted with elsewhere on the IndieWeb. + + By default Kittybox expects the Webmention endpoint to post + updates using an internal token. kittybox-webmention is an + endpoint capable of that. + ''; + }; internalTokenFile = mkOption { type = types.nullOr types.str; example = "/run/secrets/kittybox-shared-secret"; @@ -96,6 +122,7 @@ cfg.package cfg.redisUri cfg.tokenEndpoint cfg.authorizationEndpoint + cfg.internalTokenFile cfg.bind cfg.port ]; @@ -103,6 +130,9 @@ SERVE_AT = "${cfg.bind}:${builtins.toString cfg.port}"; AUTHORIZATION_ENDPOINT = cfg.authorizationEndpoint; TOKEN_ENDPOINT = cfg.tokenEndpoint; + MEDIA_ENDPOINT = cfg.mediaEndpoint; + MICROSUB_ENDPOINT = cfg.microsubServer; + WEBMENTION_ENDPOINT = cfg.webmentionEndpoint; REDIS_URI = if (cfg.redisUri == null) then "redis://127.0.0.1:6379/" else cfg.redisUri; }; @@ -221,6 +251,7 @@ pkg-config lld rust-bin.default rust-bin.rls + rust-bin.rust-src redis ]; }; -- cgit 1.4.1