Skip to content

Commit

Permalink
akkoma: make options work for 23.11 state
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
(cherry picked from commit 8a1dbed)
  • Loading branch information
cafkafk committed Apr 16, 2024
1 parent 69be1d0 commit dce7d5c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nixos/modules/services/web-apps/akkoma.nix
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,11 @@ in {
default = if lib.versionOlder config.system.stateVersion "24.05"
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}/media/"
else null;
defaultText = literalExpression ''
if lib.versionOlder config.system.stateVersion "24.05"
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}/media/"
else null;
'';
description = mdDoc ''
Base path which uploads will be stored at.
Whilst this can just be set to a subdirectory of the main domain, it is now recommended to use a different subdomain.
Expand Down Expand Up @@ -809,6 +814,7 @@ in {
enabled = mkOption {
type = types.bool;
default = false;
defaultText = literalExpression "false";
description = mdDoc ''
Whether to enable proxying of remote media through the instance's proxy.
'';
Expand All @@ -818,6 +824,11 @@ in {
default = if lib.versionOlder config.system.stateVersion "24.05"
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}/media/"
else null;
defaultText = literalExpression ''
if lib.versionOlder config.system.stateVersion "24.05"
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}/media/"
else null;
'';
description = mdDoc ''
Base path for the media proxy.
Whilst this can just be set to a subdirectory of the main domain, it is now recommended to use a different subdomain.
Expand Down

0 comments on commit dce7d5c

Please sign in to comment.