diff options
author | Christina Sørensen <christina@cafkafk.com> | 2024-04-16 14:54:09 +0200 |
---|---|---|
committer | Christina Sørensen <christina@cafkafk.com> | 2024-04-16 14:54:09 +0200 |
commit | 8a1dbedde5d596103cf7929b7286a2ba3535d8ea (patch) | |
tree | 36587947827b9e43e71c5a3118d7ea62bcf92656 /nixos | |
parent | cc8f8c431cbf29adf1152905cde646c435e86507 (diff) |
akkoma: make options work for 23.11 state
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/akkoma.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/akkoma.nix b/nixos/modules/services/web-apps/akkoma.nix index 3eebf340f9b20..eca498549df36 100644 --- a/nixos/modules/services/web-apps/akkoma.nix +++ b/nixos/modules/services/web-apps/akkoma.nix @@ -772,6 +772,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 = '' 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. @@ -804,6 +809,7 @@ in { enabled = mkOption { type = types.bool; default = false; + defaultText = literalExpression "false"; description = '' Whether to enable proxying of remote media through the instance's proxy. ''; @@ -813,6 +819,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 = '' 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. |