22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-10 10:14:06 +02:00

Improve assertion texts

This commit is contained in:
Sandro - 2023-12-05 02:52:08 +01:00
parent b76d291f3b
commit 646b9be514
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 3 additions and 3 deletions

View File

@ -33,8 +33,8 @@ in
{
assertion = cfg.oauth.enable -> cfg.settings."auth.generic_oauth".client_secret != null;
message = ''
services.grafana.settings."auth.generic_oauth".client_secret must be set for oauth to work!
Use this `$__file{/path/to/some/secret}` syntax to reference secrets securely!
Setting services.grafana.oauth.enable to true requires to set services.grafana.settings."auth.generic_oauth".client_secret.
Use this `$__file{/path/to/some/secret}` syntax to reference secrets securely.
'';
}
{

View File

@ -51,7 +51,7 @@ in
assertions = [
{
assertion = cfg.quic.enable && cfg.quic.bpf -> !lib.versionOlder cfg.package.version "1.25.0";
message = "services.nginx.quic.bpf requires nginx version 1.25.0 or newer while ${cfg.package.version} is used!";
message = "Setting services.nginx.quic.bpf to true requires nginx version 1.25.0 or newer, but currently \"${cfg.package.version}\" is used!";
}
];