1
0
Fork 0

fixes issues with docs generation

This commit is contained in:
ibizaman 2023-11-30 10:35:12 -08:00
parent 5fee2acd93
commit 34f2198f40
3 changed files with 15 additions and 7 deletions

View file

@ -14,7 +14,7 @@ in
subdomain = lib.mkOption { subdomain = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = "Subdomain under which Authelia will be served."; description = "Subdomain under which Authelia will be served.";
example = "ha"; example = "auth";
}; };
domain = lib.mkOption { domain = lib.mkOption {
@ -36,9 +36,17 @@ in
}; };
autheliaUser = lib.mkOption { autheliaUser = lib.mkOption {
type = lib.types.str; type = lib.types.nullOr lib.types.str;
description = "System user for this Authelia instance"; description = ''System user for this Authelia instance.
default = "authelia_" + builtins.replaceStrings ["-" "."] ["_" "_"] fqdn;
If set to null, defaults to:
<programlisting language="nix">
"authelia_" +
(builtins.replaceStrings ["-" "."] ["_" "_"]
''${shb.authelia.subdomain}.''${shb.authelia.domain}")
</programlisting>
'';
default = null;
}; };
secrets = lib.mkOption { secrets = lib.mkOption {
@ -112,7 +120,7 @@ in
services.authelia.instances.${fqdn} = { services.authelia.instances.${fqdn} = {
enable = true; enable = true;
user = cfg.autheliaUser; user = cfg.autheliaUser or "authelia_" + builtins.replaceStrings ["-" "."] ["_" "_"] fqdn;
secrets = { secrets = {
inherit (cfg.secrets) jwtSecretFile storageEncryptionKeyFile; inherit (cfg.secrets) jwtSecretFile storageEncryptionKeyFile;

View file

@ -6,7 +6,7 @@ in
options.shb.postgresql = { options.shb.postgresql = {
debug = lib.mkOption { debug = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
description = lib.mdDocs '' description = lib.mdDoc ''
Enable debugging options. Enable debugging options.
Currently enables shared_preload_libraries = "auto_explain, pg_stat_statements" Currently enables shared_preload_libraries = "auto_explain, pg_stat_statements"

View file

@ -211,7 +211,7 @@ in
provider = lib.mkOption { provider = lib.mkOption {
description = lib.mdDoc "VPN provider, if given uses ready-made configuration."; description = lib.mdDoc "VPN provider, if given uses ready-made configuration.";
type = lib.types.nullOf (lib.types.enum [ "nordvpn" ]); type = lib.types.nullOr (lib.types.enum [ "nordvpn" ]);
default = null; default = null;
}; };