fixes issues with docs generation
This commit is contained in:
parent
5fee2acd93
commit
34f2198f40
3 changed files with 15 additions and 7 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue